Message118200
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:34 | hniksic | set | recipients:
+ hniksic, ncoghlan, pitrou, vstinner, eric.araujo, michael.foord |
| 2010-10-08 12:48:34 | hniksic | set | messageid: <[email protected]> |
| 2010-10-08 12:48:32 | hniksic | link | issue10049 messages |
| 2010-10-08 12:48:32 | hniksic | create | |
|