Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in code in the main copy of the book ! #41

Open
MrDataPsycho opened this issue Oct 10, 2021 · 0 comments
Open

Bug in code in the main copy of the book ! #41

MrDataPsycho opened this issue Oct 10, 2021 · 0 comments

Comments

@MrDataPsycho
Copy link

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.

: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"
@MrDataPsycho MrDataPsycho changed the title Bug in code in them main copy of the book ! Bug in code in the main copy of the book ! Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant