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

RFC 9637 not implemented by ipaddress module #124217

Closed
csirmazbendeguz opened this issue Sep 18, 2024 · 3 comments
Closed

RFC 9637 not implemented by ipaddress module #124217

csirmazbendeguz opened this issue Sep 18, 2024 · 3 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@csirmazbendeguz
Copy link

csirmazbendeguz commented Sep 18, 2024

Bug report

Bug description:

>>> import ipaddress
>>> ip_address = ipaddress.ip_address("3fff::")
>>> ip_address.is_global
True

RFC 9637 registered the address block 3fff::/20 as NOT globally reachable in the IANA IPv6 Special-Purpose Address Registry, but the ipaddress module doesn't respect this.

CPython versions tested on:

3.11

Operating systems tested on:

macOS

Linked PRs

@csirmazbendeguz csirmazbendeguz added the type-bug An unexpected behavior, bug, or error label Sep 18, 2024
@y5c4l3
Copy link
Contributor

y5c4l3 commented Sep 19, 2024

Added it to reserved blocks and unit tests: #124240

@ZeroIntensity ZeroIntensity added the stdlib Python modules in the Lib dir label Sep 19, 2024
vstinner pushed a commit that referenced this issue Sep 20, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 20, 2024
…20` (pythonGH-124240)

(cherry picked from commit db6eb36)

Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 20, 2024
…20` (pythonGH-124240)

(cherry picked from commit db6eb36)

Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
vstinner pushed a commit that referenced this issue Sep 20, 2024
…/20` (GH-124240) (#124283)

gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block `3fff::/20` (GH-124240)
(cherry picked from commit db6eb36)

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
@ZeroIntensity
Copy link
Member

@vstinner the 3.13 backport PR is still open, are we sure this should be closed?

@vstinner
Copy link
Member

@vstinner the 3.13 backport PR is still open, are we sure this should be closed?

It's easier for me to close the issue, to help me tracking what has been done or not.

The 3.13 branch is blocked until Python 3.13 final release. After that, all 3.13 changes will be merged one by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants