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, georg.brandl
Date 2010-09-27.17:26:14
SpamBayes Score 0.000422535
Marked as misclassified No
Message-id <1285608377.01.0.699247005178.issue9941@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-27 17:26:17belopolskysetrecipients: + belopolsky, georg.brandl
2010-09-27 17:26:17belopolskysetmessageid: <1285608377.01.0.699247005178.issue9941@psf.upfronthosting.co.za>
2010-09-27 17:26:14belopolskylinkissue9941 messages
2010-09-27 17:26:14belopolskycreate