[Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343 (original) (raw)
Raymond Hettinger raymond.hettinger at verizon.net
Thu Jul 14 22:54:56 CEST 2005
- Previous message: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343
- Next message: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
{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
- Previous message: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343
- Next message: [Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]