Giampaolo Rodola' added the comment:

Ok, here's an updated patch modeled after:
http://hg.python.org/cpython/rev/422169310b7c

It works fine with cProfile.py but not with profile.py where I get this 
exception when I try to use the context manager (tests can be run in order to 
reproduce it):

  File "/home/giampaolo/svn/python/3.4-profile/Lib/profile.py", line 339, in 
trace_dispatch_return
    assert frame is self.cur[-2].f_back, ("Bad return", self.cur[-3])
AssertionError: ('Bad return', ('profile', 0, ''))

I have no clue what this error means.
I wasn't able to add a context manager for profile.Profile for the same reason.
Any clue?

----------
nosy: +arigo
Added file: http://bugs.python.org/file29242/profile3.patch

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

Reply via email to