This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients rbcollins, vstinner
Date 2015-03-05.02:37:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425523020.94.0.976378861855.issue23587@psf.upfronthosting.co.za>
In-reply-to
Content
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):
History
Date User Action Args
2015-03-05 02:37:00vstinnersetrecipients: + vstinner, rbcollins
2015-03-05 02:37:00vstinnersetmessageid: <1425523020.94.0.976378861855.issue23587@psf.upfronthosting.co.za>
2015-03-05 02:37:00vstinnerlinkissue23587 messages
2015-03-05 02:37:00vstinnercreate