summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/coroutines.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-07-07 10:46:09 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-07-07 10:46:09 (GMT)
commit3bc13cc8b0b85f989b8da9c5718fc5319ad06248 (patch)
tree52fc5995a7cc1ccafce61ef403b7dea1a4ff342d /Lib/asyncio/coroutines.py
parent667abc7d42e87b87338981276d0eac9895d4abf4 (diff)
parente50dafcd636ba32db890600164698bb070d40d97 (diff)
downloadcpython-3bc13cc8b0b85f989b8da9c5718fc5319ad06248.zip
cpython-3bc13cc8b0b85f989b8da9c5718fc5319ad06248.tar.gz
cpython-3bc13cc8b0b85f989b8da9c5718fc5319ad06248.tar.bz2
Merge heads
Diffstat (limited to 'Lib/asyncio/coroutines.py')
-rw-r--r--Lib/asyncio/coroutines.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
index 71a1ec4..7654a0b 100644
--- a/Lib/asyncio/coroutines.py
+++ b/Lib/asyncio/coroutines.py
@@ -64,6 +64,12 @@ class CoroWrapper:
self.gen = gen
self.func = func
self._source_traceback = traceback.extract_stack(sys._getframe(1))
+ # __name__, __qualname__, __doc__ attributes are set by the coroutine()
+ # decorator
+
+ def __repr__(self):
+ return ('<%s %s>'
+ % (self.__class__.__name__, _format_coroutine(self)))
def __iter__(self):
return self