10000 gh-107089: Improve Shelf.clear method performance by jtcave · Pull Request #107090 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-107089: Improve Shelf.clear method performance #107090

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 4 commits into from
Jul 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix whitespace
  • Loading branch information
jtcave committed Jul 28, 2023
commit 0f413694df2291ba7a7a769713753c72828c8113
2 changes: 1 addition & 1 deletion Lib/shelve.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class DbfilenameShelf(Shelf):
def __init__(self, filename, flag='c', protocol=None, writeback=False):
import dbm
Shelf.__init__(self, dbm.open(filename, flag), protocol, writeback)

def clear(self):
"""Remove all items from the shelf."""
# Call through to the clear method on dbm-backed shelves.
Expand Down
0