Message109813
Hey Frood, I'll take another look at it tomorrow when I am less addled. But as to context managers that are actual classes - I've not written a single one; they are always generator functions with a simple try/yield/except/finally in the body. After all state-is-state, and writing an __init__, __enter__, and __exit__ is just extra boilerplate for my common uses. |
|
Date |
User |
Action |
Args |
2010-07-10 02:40:22 | jackdied | set | recipients:
+ jackdied, ncoghlan, michael.foord |
2010-07-10 02:40:22 | jackdied | set | messageid: <1278729622.38.0.718207557958.issue9110@psf.upfronthosting.co.za> |
2010-07-10 02:40:18 | jackdied | link | issue9110 messages |
2010-07-10 02:40:17 | jackdied | create | |
|