Message117451
I've ran into a problem adding context manager functionality to Profile/Trace objects. When profile/trace function is set in __enter__ and removed in __exit__ it catches two spurious events: a return from __enter__ and a call to __exit__. This is particularly problematic with Profile which is not prepared to handle a return event that does not follow a matching call. |
|
Date |
User |
Action |
Args |
2010-09-27 17:26:17 | belopolsky | set | recipients:
+ belopolsky, georg.brandl |
2010-09-27 17:26:17 | belopolsky | set | messageid: <1285608377.01.0.699247005178.issue9941@psf.upfronthosting.co.za> |
2010-09-27 17:26:14 | belopolsky | link | issue9941 messages |
2010-09-27 17:26:14 | belopolsky | create | |
|