30 Apr
2005
30 Apr
'05
1:24 a.m.
I agree, but does this then work:
x = opening("foo") ...stuff... x as f: # etc
? And if not, why not? And if yes, what happens if "stuff" raises an exception?
Forget it -- the above is probably addressed by the PEP and doesn't really depend on whether there's a kw or not.