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 hniksic
Recipients eric.araujo, hniksic, michael.foord, ncoghlan, pitrou, vstinner
Date 2010-10-08.12:48:32
SpamBayes Score 0.0031365263
Marked as misclassified No
Message-id <>
I considered using a variable, but I went with the factory function for two reasons: consistency with the rest of contextlib, and equivalence to the contextmanager-based implementation.

Another reason is that it leaves the option of adding optional parameters at a later point.  I know, optional parameters aren't likely for a "null" constructor, but still... it somehow didn't feel right to relinquish control.
Date User Action Args
2010-10-08 12:48:34hniksicsetrecipients: + hniksic, ncoghlan, pitrou, vstinner, eric.araujo, michael.foord
2010-10-08 12:48:34hniksicsetmessageid: <>
2010-10-08 12:48:32hniksiclinkissue10049 messages
2010-10-08 12:48:32hniksiccreate