mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merged revisions 70908,70939,71009,71022,71036 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70908 | jesse.noller | 2009-03-31 17:20:35 -0500 (Tue, 31 Mar 2009) | 1 line Issue 5619: Pass MS CRT debug flags into subprocesses ........ r70939 | jesse.noller | 2009-03-31 22:45:50 -0500 (Tue, 31 Mar 2009) | 1 line Fix multiprocessing.event to match the new threading.Event API ........ r71009 | jesse.noller | 2009-04-01 19:03:28 -0500 (Wed, 01 Apr 2009) | 1 line issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help ........ r71022 | jesse.noller | 2009-04-01 21:32:55 -0500 (Wed, 01 Apr 2009) | 1 line Issue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin Loewis ........ r71036 | jesse.noller | 2009-04-01 23:22:09 -0500 (Wed, 01 Apr 2009) | 1 line Issue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES ........
This commit is contained in:
parent
1cdd83c2ab
commit
965ce87991
12 changed files with 198 additions and 61 deletions
|
@ -708,7 +708,8 @@ Connection objects usually created using :func:`Pipe` -- see also
|
|||
Send an object to the other end of the connection which should be read
|
||||
using :meth:`recv`.
|
||||
|
||||
The object must be picklable.
|
||||
The object must be picklable. Very large pickles (approximately 32 MB+,
|
||||
though it depends on the OS) may raise a ValueError exception.
|
||||
|
||||
.. method:: recv()
|
||||
|
||||
|
@ -740,7 +741,9 @@ Connection objects usually created using :func:`Pipe` -- see also
|
|||
complete message.
|
||||
|
||||
If *offset* is given then data is read from that position in *buffer*. If
|
||||
*size* is given then that many bytes will be read from buffer.
|
||||
*size* is given then that many bytes will be read from buffer. Very large
|
||||
buffers (approximately 32 MB+, though it depends on the OS) may raise a
|
||||
ValueError exception
|
||||
|
||||
.. method:: recv_bytes([maxlength])
|
||||
|
||||
|
@ -834,6 +837,12 @@ object -- see :ref:`multiprocessing-managers`.
|
|||
.. class:: Event()
|
||||
|
||||
A clone of :class:`threading.Event`.
|
||||
This method returns the state of the internal semaphore on exit, so it
|
||||
will always return ``True`` except if a timeout is given and the operation
|
||||
times out.
|
||||
|
||||
.. versionchanged:: 2.7
|
||||
Previously, the method always returned ``None``.
|
||||
|
||||
.. class:: Lock()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue