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

Add IPv4Address.ipv6_mapped attribute #92573

Closed
wbolster opened this issue May 9, 2022 · 1 comment
Closed

Add IPv4Address.ipv6_mapped attribute #92573

wbolster opened this issue May 9, 2022 · 1 comment
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@wbolster
Copy link
Contributor

wbolster commented May 9, 2022

Feature or enhancement

Add IPv4Address.ipv6_mapped attribute for symmetry with existing IPv6Address.ipv4_mapped

Pitch

The IPv6Address.ipv4_mapped attribute (docs) makes it easy to decode IPv6 addresses with embedded IPv4 addresses as defined in RFC4291.

It would be useful to also create its mirror version: IPv4Address.ipv6_mapped

If others also think this makes sense, please let me know and i can cook up a pull request.

@wbolster wbolster added the type-feature A feature request or enhancement label May 9, 2022
@erlend-aasland erlend-aasland added the stdlib Python modules in the Lib dir label May 16, 2022
wbolster added a commit to wbolster/cpython that referenced this issue Jul 22, 2022
This adds a IPv4Address.ipv6_mapped attribute to mirror
IPv6Address.ipv4_mapped.

Closes python#92573.
@encukou
Copy link
Member

encukou commented Apr 9, 2024

This was added in #109466
Sorry that we missed this report!

@encukou encukou closed this as completed Apr 9, 2024
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-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants