-
-
Notifications
You must be signed in to change notification settings - Fork 32k
address
arg can be bytes
for ip_*
functions in ipaddress
module
#90804
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
Comments
Right now the docs say:
Note the But, this is not true. Counter example:
So, packed version that accepts For
I will send a PR with proposed changes. |
Can you dig more to find if the problem is in the code or in the doc? |
The PEP does not specify this, as far as I can tell: https://peps.python.org/pep-3144/. Nor do the docs attached to the reference implementation that the PEP links to. The linked PR proposes documenting that cpython/Lib/test/test_ipaddress.py Line 1298 in f9433ff
bytes if it's completely untested.
|
bytes
are accepted inipaddress
docs #31139Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: