Skip to content

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

Description

@MrDataPsycho

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions