Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:

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.

----------
Added file: http://bugs.python.org/file18226/issue9315-trace-fix.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9315>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to