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 belopolsky
Recipients belopolsky, eli.bendersky, terry.reedy
Date 2010-07-28.03:28:17
SpamBayes Score 0.004206519
Marked as misclassified No
Message-id <1280287700.53.0.79849624902.issue9315@psf.upfronthosting.co.za>
In-reply-to
Content
I am attaching a patch, issue9315-trace-fix.diff, that fixes a py3k bug exposed by issue9315.1-py3k.patch tests.

One of the 3.x changes that caused the failure was that frames now have a __doc__ attribute and cannot be distinguished from functions.  I replaced the hasattr(f, "__doc__") with hasattr(f, "__annotations__"), but I wonder if it would be better to use something like isinstance(f, types.FunctionType) there.

Eli, in order to test the trace module more thoroughly, you need to add generators, list and set comprehensions and instance, class, and static methods to your fake module and test tracing of their execution.
History
Date User Action Args
2010-07-28 03:28:20belopolskysetrecipients: + belopolsky, terry.reedy, eli.bendersky
2010-07-28 03:28:20belopolskysetmessageid: <1280287700.53.0.79849624902.issue9315@psf.upfronthosting.co.za>
2010-07-28 03:28:18belopolskylinkissue9315 messages
2010-07-28 03:28:18belopolskycreate