diff --git a/Lib/multiprocessing/sharedctypes.py b/Lib/multiprocessing/sharedctypes.py index 6071707027bea4..3290246b31431f 100644 --- a/Lib/multiprocessing/sharedctypes.py +++ b/Lib/multiprocessing/sharedctypes.py @@ -16,7 +16,16 @@ from .context import reduction, assert_spawning _ForkingPickler = reduction.ForkingPickler -__all__ = ['RawValue', 'RawArray', 'Value', 'Array', 'copy', 'synchronized'] +__all__ = [ + # Methods for getting ctypes in shared memory + 'RawValue', 'RawArray', + # Methods for getting synchronization wrappers + 'Value', 'Array', + # The synchronization types + 'Synchronized', 'SynchronizedArray', 'SynchronizedString', + # Misc functions + 'copy', 'synchronized' + ] # # diff --git a/Misc/NEWS.d/next/Documentation/2023-10-03-17-59-00.gh-issue-0.m1D01N.rst b/Misc/NEWS.d/next/Documentation/2023-10-03-17-59-00.gh-issue-0.m1D01N.rst new file mode 100644 index 00000000000000..d2a9c45c3ca1dd --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2023-10-03-17-59-00.gh-issue-0.m1D01N.rst @@ -0,0 +1,4 @@ +Export :class:`multiprocessing.Synchronized`, +:class:`multiprocessing.SynchronizedArray`, and +:class:`multiprocessing.SynchronizedString` so multiprocessing users can +annotate their code well.