Message182986
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? |
|
Date |
User |
Action |
Args |
2013-02-25 21:33:18 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, gvanrossum, arigo, georg.brandl, pitrou, ezio.melotti, eric.araujo, tleeuwenburg@gmail.com, ebfe, debatem1, ubershmekel, bjorns |
2013-02-25 21:33:18 | giampaolo.rodola | set | messageid: <1361827998.8.0.923620450407.issue9285@psf.upfronthosting.co.za> |
2013-02-25 21:33:18 | giampaolo.rodola | link | issue9285 messages |
2013-02-25 21:33:18 | giampaolo.rodola | create | |
|