FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-99631: Add custom loads and dumps support for the shelve module by furkanonder · Pull Request #118065 · python/cpython · GitHub

Repository navigation

gh-99631: Add custom loads and dumps support for the shelve module - #118065

Merged
picnixz merged 75 commits into
python:mainfrom
furkanonder:issue-99631-2
Jul 12, 2025
Merged

picnixz merged 75 commits into
python:mainfrom
furkanonder:issue-99631-2

Conversation

furkanonder commented Apr 18, 2024 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor

Comment thread Lib/shelve.py
Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Lib/shelve.py Outdated

encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

BsdDbShelf still uses pickle.Unpickler directly to walk the keys.

Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Lib/shelve.py Outdated

bedevere-app Bot commented Apr 23, 2024

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 Doc/library/shelve.rst
@@ -160,18 +181,20 @@ Restrictions
modules. The *dict* object passed to the constructor must support those
methods. This is generally accomplished by calling one of
:func:`!bsddb.hashopen`, :func:`!bsddb.btopen` or :func:`!bsddb.rnopen`. The

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

By the way, we also need to update this sentence (from bsddb to berkeleydb). bsddb is deprecated according to https://www.jcea.es/programacion/pybsddb.htm.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It looks like the change would be bigger: it’s a new module (although the docs are not very clear) with maybe a new API.

Updating or deprecating this should be discussed in its own ticket 🙂

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yes, I agree on it. It would be better to open a new ticket to discuss this issue.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

... or consider instead opening topic on Discourse; this may need a larger audience than what you'd get on the bug tracker.

furkanonder added awaiting review and removed 3.14 bugs and security fixes awaiting changes labels Sep 13, 2024

picnixz left a comment •
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Some few nitpicks that I thought of. Some should be addressed (3.15 -> next + self.subTest(proto=5)`, while others are purely cosmetics.

I'll let a core dev check other stuff (

This core dev is now me.

Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Lib/test/test_shelve.py Outdated
Comment thread Lib/test/test_shelve.py Outdated
Comment thread Lib/test/test_shelve.py Outdated
Comment thread Lib/test/test_shelve.py Outdated
Comment thread Lib/test/test_shelve.py Outdated
furkanonder requested a review from picnixz May 30, 2025 16:04

picnixz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Almost done!

Comment thread Doc/library/shelve.rst Outdated
Comment thread Doc/library/shelve.rst Outdated
Comment thread Lib/test/test_shelve.py Outdated
Comment thread Lib/test/test_shelve.py Outdated
picnixz merged commit dda70fa into python:main Jul 12, 2025

picnixz commented Jul 12, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

Oof, I forgot to merge main. Well, I don't think something for shelve changed in between and there were no conflicts, so it should be fine. Thanks for waiting!

Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…e` module (python#118065)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
picnixz added a commit to picnixz/cpython that referenced this pull request Jul 13, 2025
…e` module (python#118065)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

Copy link
Copy Markdown
Contributor Author

Oof, I forgot to merge main. Well, I don't think something for shelve changed in between and there were no conflicts, so it should be fine. Thanks for waiting!

Thanks for the merge!

taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…e` module (python#118065)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…e` module (python#118065)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL