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

gh-110196: Fix ipaddress.IPv6Address.__reduce__ #110198

Merged
merged 4 commits into from
Oct 22, 2023

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantian gaogaotiantian commented Oct 2, 2023

IPv6Address should keep scope_id. Inheriting __reduce__ from _BaseAddress will only keep the ip address.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also update pickle_test to check for some attrs?

Lib/test/test_ipaddress.py Outdated Show resolved Hide resolved
@gaogaotiantian
Copy link
Member Author

Maybe also update pickle_test to check for some attrs?

Makes sense! Test added.

@gaogaotiantian
Copy link
Member Author

@gpshead not sure who I should ask for the review. You have reviewed changes to this file a couple of times, could you take a look at this? Thanks.

@furkanonder furkanonder added the stdlib Python modules in the Lib dir label Oct 17, 2023
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@serhiy-storchaka serhiy-storchaka merged commit 767f416 into python:main Oct 22, 2023
26 checks passed
@serhiy-storchaka serhiy-storchaka added needs backport to 3.11 only security fixes needs backport to 3.12 bug and security fixes labels Oct 22, 2023
@miss-islington-app
Copy link

Thanks @gaogaotiantian for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

Thanks @gaogaotiantian for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 22, 2023
(cherry picked from commit 767f416)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 22, 2023
(cherry picked from commit 767f416)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Oct 22, 2023

GH-111190 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Oct 22, 2023
@bedevere-app
Copy link

bedevere-app bot commented Oct 22, 2023

GH-111191 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Oct 22, 2023
serhiy-storchaka pushed a commit that referenced this pull request Oct 22, 2023
…H-111190)

(cherry picked from commit 767f416)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
serhiy-storchaka pushed a commit that referenced this pull request Oct 22, 2023
…H-111191)

(cherry picked from commit 767f416)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
@furkanonder furkanonder added the type-bug An unexpected behavior, bug, or error label Oct 26, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
@gaogaotiantian gaogaotiantian deleted the fix-ipaddress-reduce branch June 17, 2024 17:45
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 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-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants