The Wayback Machine - https://web.archive.org/web/20221031103107/https://github.com/python/cpython/pull/95497
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-56133: Clarify function/constructor parameter for pickle module #95497

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
Doc/library/copyreg.rst Outdated Show resolved Hide resolved
Doc/library/copyreg.rst Outdated Show resolved Hide resolved
@JelleZijlstra JelleZijlstra merged commit 281a3f1 into python:main Oct 10, 2022
14 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Oct 10, 2022

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

bedevere-bot commented Oct 10, 2022

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

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
@miss-islington
Copy link
Contributor

miss-islington commented Oct 10, 2022

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 Oct 10, 2022
pablogsal pushed a commit that referenced this pull request Oct 22, 2022
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants