[Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343

Raymond Hettinger raymond.hettinger at verizon.net
Thu Jul 14 22:54:56 CEST 2005


{MAL]
> This is exactly what I'm getting at: I can see the potential
> use for resource management (which is what started out the
> whole idea IIRC), but fail to see why you'd want to use it
> for anything more complicated than that.

Substitute "different" for "complicated".

'with' is not application specific, it is incredibly general.  All it
does is abstract recurring uses of try/finally.

Naming it after a specific class of applications would be a mistake.


Raymond



More information about the Python-Dev mailing list