Skip to content

gh-56133: Clarify function/constructor parameter for pickle module #95497

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

Merged
merged 3 commits into from
Oct 10, 2022

Conversation

slateny
Copy link
Contributor

@slateny slateny commented Jul 31, 2022

The dispatch_table doc was added in this commit, which adds many more 'copyreg' references to the pickle doc, but finding info on the function/constructor parameter isn't too clear.

Constructor argument doesn't seem to do anything:

cpython/Lib/copyreg.py

Lines 17 to 24 in 50b2261

# The constructor_ob function is a vestige of safe for unpickling.
# There is no reason for the caller to pass it anymore.
if constructor_ob is not None:
constructor(constructor_ob)
def constructor(object):
if not callable(object):
raise TypeError("constructors must be callable")

@bedevere-bot bedevere-bot added awaiting review docs Documentation in the Doc dir skip news labels Jul 31, 2022
@JelleZijlstra JelleZijlstra self-assigned this Oct 10, 2022
@JelleZijlstra JelleZijlstra added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Oct 10, 2022
@miss-islington
Copy link
Contributor

Thanks @slateny for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

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

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Oct 10, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 10, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 10, 2022
miss-islington added a commit that referenced this pull request Oct 10, 2022
@JelleZijlstra JelleZijlstra added needs backport to 3.10 only security fixes and removed needs backport to 3.10 only security fixes labels Oct 10, 2022
@miss-islington
Copy link
Contributor

Thanks @slateny for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 10, 2022
miss-islington added a commit that referenced this pull request Oct 10, 2022
@slateny slateny deleted the s/56133 branch October 10, 2022 03:32
pablogsal pushed a commit that referenced this pull request Oct 22, 2022
@ZeroIntensity ZeroIntensity removed the needs backport to 3.10 only security fixes label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants