[Python-checkins] peps: pep-0492: (set|get)_coroutine_wrapper() is now thread-specific

yury.selivanov python-checkins at python.org
Tue May 5 01:19:55 CEST 2015


https://hg.python.org/peps/rev/861864601573
changeset:   5819:861864601573
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Mon May 04 19:19:52 2015 -0400
summary:
  pep-0492: (set|get)_coroutine_wrapper() is now thread-specific

files:
  pep-0492.txt |  13 +++++++------
  1 files changed, 7 insertions(+), 6 deletions(-)


diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -690,15 +690,16 @@
 * ``inspect.isawaitable(obj)`` returns ``True`` if ``obj`` can be used
   in ``await`` expression.  See `Await Expression`_ for details.
 
-* ``sys.set_coroutine_wrapper(wrapper)`` allows to intercept creation of
-  *coroutine objects*.  ``wraper`` must be a callable that accepts one
-  argument: a *coroutine object* or ``None``.  ``None`` resets the
+* ``sys.set_coroutine_wrapper(wrapper)`` allows to intercept creation
+  of *coroutine objects*.  ``wraper`` must be a callable that accepts
+  one argument: a *coroutine object* or ``None``.  ``None`` resets the
   wrapper.  If called twice, the new wrapper replaces the previous one.
-  See `Debugging Features`_ for more details.
+  The function is thread-specific.  See `Debugging Features`_ for more
+  details.
 
 * ``sys.get_coroutine_wrapper()`` returns the current wrapper object.
-  Returns ``None`` if no wrapper was set. See  `Debugging Features`_
-  for more details.
+  Returns ``None`` if no wrapper was set.  The function is
+  thread-specific.  See  `Debugging Features`_ for more details.
 
 
 Glossary

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list