Author: Richard Plangger <[email protected]>
Branch: py3.5-set-sentinel
Changeset: r87466:78cd6d8efe3b
Date: 2016-09-30 13:49 +0200
http://bitbucket.org/pypy/pypy/changeset/78cd6d8efe3b/

Log:    extended doc, renamed function, starting to implement the function
        fully

diff --git a/pypy/module/thread/__init__.py b/pypy/module/thread/__init__.py
--- a/pypy/module/thread/__init__.py
+++ b/pypy/module/thread/__init__.py
@@ -21,7 +21,7 @@
         'allocate':               'os_lock.allocate_lock',  # obsolete synonym
         'LockType':               'os_lock.Lock',
         'RLock':                  'os_lock.W_RLock',
-        '_set_sentinel':          'os_lock.set_sentinel',
+        '_set_sentinel':          'os_lock._set_sentinel',
         '_local':                 'os_local.Local',
         'TIMEOUT_MAX':            'space.wrap(float(os_lock.TIMEOUT_MAX // 
1000000))',
         'error':                  'space.fromcache(error.Cache).w_error',
diff --git a/pypy/module/thread/os_lock.py b/pypy/module/thread/os_lock.py
--- a/pypy/module/thread/os_lock.py
+++ b/pypy/module/thread/os_lock.py
@@ -145,8 +145,12 @@
     return space.wrap(Lock(space))
 
 def set_sentinel(space):
-    """Set a sentinel lock that will be released when the current thread
-state is finalized (after it is untied from the interpreter)."""
+    """_set_sentinel() -> lock
+
+    Set a sentinel lock that will be released when the current thread 
+    state is finalized (after it is untied from the interpreter).
+
+    This is a private API for the threading module."""
     lock = allocate_lock(space)
     return lock
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to