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 r.david.murray
Recipients benjamin.peterson, bethard, brian.curtin, denversc, eric.araujo, eric.smith, r.david.murray
Date 2010-08-12.18:26:48
SpamBayes Score 0.0018302351
Marked as misclassified No
Message-id <1281637612.07.0.897769335837.issue9553@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think it is worthwhile to jump through hoops to avoid calling the special methods.  Your patch also creates an unnecessary dependency on the internal implementation of EnvironmentVarGuard (ie: the fact that currently __enter__ happens to return self...this is *not* part of EnvironmentVarGuard's interface contract).
History
Date User Action Args
2010-08-12 18:26:52r.david.murraysetrecipients: + r.david.murray, bethard, eric.smith, benjamin.peterson, eric.araujo, brian.curtin, denversc
2010-08-12 18:26:52r.david.murraysetmessageid: <1281637612.07.0.897769335837.issue9553@psf.upfronthosting.co.za>
2010-08-12 18:26:49r.david.murraylinkissue9553 messages
2010-08-12 18:26:48r.david.murraycreate