> 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.