8000 gh-134004: Dbm vacuuming by Andrea-Oliveri · Pull Request #134028 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-134004: Dbm vacuuming #134028

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 21 commits into from
Jun 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7505713
Added tests for vacuuming functionality of dbm
Andrea-Oliveri May 14, 2025
1147774
Added vacuuming logic to dbm.sqlite
Andrea-Oliveri May 14, 2025
109a378
Added vacuuming logic to dbm.dumb
Andrea-Oliveri May 14, 2025
cdacb53
Updated documentation of dbm
Andrea-Oliveri May 14, 2025
02a7b8a
Adapted vacuum tests to allow for submodules missing method
Andrea-Oliveri May 14, 2025
dcb43a2
Pushing news and acks entries
Andrea-Oliveri May 15, 2025
89fb2db
Changed News entry to avoid failure during Doc testing due to referen…
Andrea-Oliveri May 15, 2025
476dc55
Changed method names from .vacuum to .reorganize in dbm.sqlite and db…
Andrea-Oliveri May 15, 2025
19c0c8d
Added .reorganize() method in shelve to expose dbm submodule's own .r…
Andrea-Oliveri May 15, 2025
88b4014
Added documentation for shelve.reorganize
Andrea-Oliveri May 15, 2025
5c1d45f
Fixed link in doc
Andrea-Oliveri May 15, 2025
992e7aa
Updated news
Andrea-Oliveri May 15, 2025
b96480b
PR review: removed unnecessary .keys()
Andrea-Oliveri May 15, 2025
4c23b64
Updated documentation to correct notes indentation
Andrea-Oliveri May 17, 2025
8a80977
Left previously removed comment as requested in PR
Andrea-Oliveri May 17, 2025
166a553
Modified documentation of dbm.dumb warning to align with shelve warning
Andrea-Oliveri May 17, 2025
6f34de5
Skipping test instead of succeeding if method not implemented for sub…
Andrea-Oliveri May 28, 2025
059ad82
Converted redundant f-string to regular string
Andrea-Oliveri May 28, 2025
3e7049f
A 8000 dded versionadded to method documentations
Andrea-Oliveri May 28, 2025
2f5af38
Added whatsnew entries
Andrea-Oliveri May 28, 2025
e2370ac
Merged changes from branch main
Andrea-Oliveri May 28, 2025
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
Added .reorganize() method in shelve to expose dbm submodule's own .r…
…eorganize()
  • Loading branch information
Andrea-Oliveri committed May 15, 2025
A512
commit 19c0c8da63b69aaf27ce749ee12c5ad4b812f762
5 changes: 5 additions & 0 deletions Lib/shelve.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ def sync(self):
if hasattr(self.dict, 'sync'):
self.dict.sync()

def reorganize(self):
self.sync()
if hasattr(self.dict, 'reorganize'):
self.dict.reorganize()


class BsdDbShelf(Shelf):
"""Shelf implementation using the "BSD" db interface.
Expand Down
Loading
0