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 eric.araujo
Recipients benjamin.peterson, daniel.urban, dholth, eric.araujo
Date 2011-05-23.14:09:44
SpamBayes Score 0.0028052987
Marked as misclassified No
Message-id <>
> hasattr(transaction, '__exit__') explains that magic methods are looked up on the class, not on the instances.  There’s a lot of code out there that erroneously checks for __len__ or __call__ on instances, and this is the second time to my knowledge that a project abused a module-level __enter__ function.
Date User Action Args
2011-05-23 14:09:45eric.araujosetrecipients: + eric.araujo, benjamin.peterson, daniel.urban, dholth
2011-05-23 14:09:45eric.araujosetmessageid: <>
2011-05-23 14:09:44eric.araujolinkissue12022 messages
2011-05-23 14:09:44eric.araujocreate