:page 29
def ip_addresses():
hostname = socket.gethostname()
addresses = socket.getaddrinfo(hostname, None)
address_info = []
for address in addresses:
address_info.append(address[0].name, address[4][0]) # The inner item should be a list add..append((...))
return address_info
:page 70
def test_prerelease_of_micro_is_unmarked(self, subject): # here version argument is missing
py39 = (3, 9, 1, "alpha", 1) # here version function is not used py39 = version(...)
assert subject(py39) == "3.9"
Hi,
I was trying some code of the book. While trying I found some unfinished code in the book but in the git the problem already resolved.