Skip to content

gh-83915: Deprecate the readinto() fallback path in _pickle.c#19237

Open
ZackerySpytz wants to merge 4 commits intopython:mainfrom
ZackerySpytz:bpo-39734-readinto-pickle-depr
Open

gh-83915: Deprecate the readinto() fallback path in _pickle.c#19237
ZackerySpytz wants to merge 4 commits intopython:mainfrom
ZackerySpytz:bpo-39734-readinto-pickle-depr

Conversation

@ZackerySpytz
Copy link
Copy Markdown
Contributor

@ZackerySpytz ZackerySpytz commented Mar 30, 2020

@ZackerySpytz
Copy link
Copy Markdown
Contributor Author

I think the warning message could be better.
This PR still needs a news entry (if it is accepted).

pitrou
pitrou previously requested changes Apr 18, 2020
Copy link
Copy Markdown
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Thank you for doing this. It looks good on the principle.

Comment thread Lib/test/pickletester.py Outdated
@bedevere-bot
Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Comment thread Lib/test/pickletester.py Outdated
@iritkatriel
Copy link
Copy Markdown
Member

I have made the requested changes; please review again.

Copy link
Copy Markdown
Member

@iritkatriel iritkatriel left a comment

Choose a reason for hiding this comment

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

With the change the test fails for the Python version unpickler:

======================================================================
FAIL: test_multiple_unpicklings_minimal (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_minimal)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython/Lib/test/pickletester.py", line 3710, in test_multiple_unpicklings_minimal
    with self.assertWarns(DeprecationWarning):
AssertionError: DeprecationWarning not triggered

@bedevere-bot
Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@erlend-aasland erlend-aasland changed the title bpo-39734: Deprecate the readinto() fallback path in _pickle.c gh-83915: Deprecate the readinto() fallback path in _pickle.c Jan 5, 2024
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Apr 18, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants