10000 gh-90556: add SharedMemory.rename on multiprocessing.shared_memory by aisk · Pull Request #132130 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-90556: add SharedMemory.rename on multiprocessing.shared_memory #132130

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

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4ecc7bd
posixshmem module shm_rename freebsd support.
devnexen Jan 16, 2022
1336f8c
update shared_memory library
devnexen Jan 16, 2022
d11ff82
doc update
devnexen Jan 16, 2022
13734b6
📜🤖 Added by blurb_it.
blurb-it[bot] Jan 17, 2022
c82d4db
Merge remote-tracking branch 'origin/main' into shm_rename
aisk Mar 29, 2025
69d583f
Update generated files
aisk Mar 29, 2025
83d63f4
Update by review
aisk Mar 29, 2025
ba0e6d0
Improve document by introduce more RST markers
aisk Mar 29, 2025
514ed3d
Add test
aisk Apr 5, 2025
810e765
update quote in .in file
aisk Apr 5, 2025
fa45c2e
regen-config
aisk Apr 5, 2025
bea3158
Merge branch 'main' into shm_rename
aisk Apr 5, 2025
ca0714b
Fix news entry
aisk Apr 5, 2025
b3ec978
Fix docs
aisk Apr 5, 2025
778e646
fix news entry
aisk Apr 5, 2025
7e3242c
fix news entry
aisk Apr 5, 2025
6ec2152
Update Lib/multiprocessing/shared_memory.py
aisk Apr 6, 2025
8109775
Update Doc/library/multiprocessing.shared_memory.rst
aisk Apr 6, 2025
8e86d21
Update Doc/library/multiprocessing.shared_memory.rst
aisk Apr 6, 2025
ef3b5ce
Update Misc/NEWS.d/next/Library/2022-01-17-20-03-56.bpo-46398.FATeqM.rst
aisk Apr 6, 2025
86debb3
Update Doc/library/multiprocessing.shared_memory.rst
aisk Apr 6, 2025
cb181b0
Remove whitespace in empty line
aisk Apr 6, 2025
f6f8312
Define the rename method conditionally
aisk Apr 6, 2025
1cc08d7
Fix test on Windows
aisk Apr 6, 2025
d77049c
Fix codes on Windows
aisk Apr 6, 2025
416c6d8
Move constants
aisk Apr 6, 2025
620da83
Update document
aisk Apr 6, 2025
4993685
Fix indent in document
aisk Apr 6, 2025
8adc394
Add more tests
aisk Apr 7, 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
doc update
  • Loading branch information
devnexen committed Feb 24, 2024
commit d11ff820ad728c00aefd9133d1f30afa05365b80
9 changes: 9 additions & 0 deletions Doc/library/multiprocessing.shared_memory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ copying of data.
This method has no effect on Windows, where the only way to delete a
shared memory block is to close all handles.

.. method:: rename(newname, flags)

Renames the underlying shared memory block to ``newname``. By
default, if ``newname`` already exists, it will be unlinked
beforehand. Passing the ``os.SHM_RENAME_EXCHANGE`` as ``flags``,
an exchange with ``newname`` will be proceeded instead. Passing
the ``os.SHM_RENAME_NOREPLACE`` as ``flags``, an error
will be triggered if ``newname`` already exists.

.. attribute:: buf

A memoryview of contents of the shared memory block.
Expand Down
0