Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-101588: Deprecate pickle/copy/deepcopy support in itertools#104965

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

rhettinger
Copy link
Contributor

@rhettingerrhettinger commentedMay 26, 2023
edited
Loading

Thomas, the C code deprecation and the related tests were created in a way that should be easy to review and easy to turned-off if need arises.


📚 Documentation preview 📚:https://cpython-previews--104965.org.readthedocs.build/

import warnings

def pickle_deprecated(testfunc):
""" Run the test twice. On the first pass, verify that a
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth it to run them a third time, with DeprecationWarnings promoted to errors? That usually ends up exercising paths that rarely get considered, but it'd probably be more in pickle than in itertools.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Will do.

@rhettingerrhettinger merged commit402ee5a intopython:mainMay 26, 2023
@miss-islington
Copy link
Contributor

Thanks@rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@rhettingerrhettinger deleted the itertool_pickle_deprecation branchMay 26, 2023 20:33
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 26, 2023
…ythonGH-104965)(cherry picked from commit402ee5a)Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-bot
Copy link

GH-104997 is a backport of this pull request to the3.12 branch.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Yhg1sYhg1sYhg1s approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@rhettinger@miss-islington@bedevere-bot@Yhg1s

[8]ページ先頭

©2009-2025 Movatter.jp