[Python-checkins] r80211 - in python/branches/py3k/Doc/library: _thread.rst threading.rst

antoine.pitrou python-checkins at python.org
Mon Apr 19 16:05:51 CEST 2010


Author: antoine.pitrou
Date: Mon Apr 19 16:05:51 2010
New Revision: 80211

Log:
Add version{added,changed} for lock timeout support.



Modified:
   python/branches/py3k/Doc/library/_thread.rst
   python/branches/py3k/Doc/library/threading.rst

Modified: python/branches/py3k/Doc/library/_thread.rst
==============================================================================
--- python/branches/py3k/Doc/library/_thread.rst	(original)
+++ python/branches/py3k/Doc/library/_thread.rst	Mon Apr 19 16:05:51 2010
@@ -109,6 +109,8 @@
    :meth:`Lock.acquire`. Specifiying a timeout greater than this value will
    raise an :exc:`OverflowError`.
 
+   .. versionadded:: 3.2
+
 
 Lock objects have the following methods:
 
@@ -132,6 +134,9 @@
    The return value is ``True`` if the lock is acquired successfully,
    ``False`` if not.
 
+   .. versionchanged:: 3.2
+      The *timeout* parameter is new.
+
 .. method:: lock.release()
 
    Releases the lock.  The lock must have been acquired earlier, but not

Modified: python/branches/py3k/Doc/library/threading.rst
==============================================================================
--- python/branches/py3k/Doc/library/threading.rst	(original)
+++ python/branches/py3k/Doc/library/threading.rst	Mon Apr 19 16:05:51 2010
@@ -164,6 +164,7 @@
    Specifiying a timeout greater than this value will raise an
    :exc:`OverflowError`.
 
+   .. versionadded:: 3.2
 
 Detailed interfaces for the objects are documented below.
 
@@ -382,6 +383,8 @@
    The return value is ``True`` if the lock is acquired successfully,
    ``False`` if not (for example if the *timeout* expired).
 
+   .. versionchanged:: 3.2
+      The *timeout* parameter is new.
 
 .. method:: Lock.release()
 
@@ -439,6 +442,9 @@
    and as long as the lock cannot be acquired.  Return true if the lock has
    been acquired, false if the timeout has elapsed.
 
+   .. versionchanged:: 3.2
+      The *timeout* parameter is new.
+
 
 .. method:: RLock.release()
 


More information about the Python-checkins mailing list