STINNER Victor added the comment:
By the way, Robert Collins proposed the following change in part of #17911, but
it was removed in the final change because asyncio must support Python 3.4 (and
3.3):
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 01320cd..08740aa 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -95,7 +95,7 @@ class Handle:
info.append(_format_callback(self._callback, self._args))
if self._source_traceback:
frame = self._source_traceback[-1]
- info.append('created at %s:%s' % (frame[0], frame[1]))
+ info.append('created at %s:%s' % (frame.filename, frame.lineno))
return info
def __repr__(self):
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23587>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com