Skip to content

Commit d2e32f6

Browse files
SynchronizedBase isn't as helpful as I thought.
1 parent c68a351 commit d2e32f6

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Lib/multiprocessing/sharedctypes.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@
1616
from .context import reduction, assert_spawning
1717
_ForkingPickler = reduction.ForkingPickler
1818

19-
__all__ = ['RawValue', 'RawArray', 'Value', 'Array', 'copy', 'synchronized', 'SynchronizedBase']
19+
__all__ = [
20+
# Methods for getting ctypes in shared memory
21+
'RawValue', 'RawArray',
22+
# Methods for getting synchronization wrappers
23+
'Value', 'Array',
24+
# The synchronization types
25+
'Synchronized', 'SynchronizedArray', 'SynchronizedString',
26+
# Misc functions
27+
'copy', 'synchronized'
28+
]
2029

2130
#
2231
#
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
Export :class:`multiprocessing.SynchronizedBase` so multiprocessing users can
2-
typecheck their code.
1+
Export :class:`multiprocessing.Synchronized`,
2+
:class:`multiprocessing.SynchronizedArray`, and
3+
:class:`multiprocessing.SynchronizedString` so multiprocessing users can
4+
annotate their code well.

0 commit comments

Comments
 (0)