[Python-Dev] Terminology for PEP 343
Raymond Hettinger
python at rcn.com
Sun Jul 3 21:41:30 CEST 2005
> > There may be cases where the object being managed is not a resource
> > per-se, but that doesn't mean that the mechanism is misnamed as a
> > 'resource manager'; it's just the most common use case that any of
us
> > have managed to think of (as of yet).
[Michael Hudson]
> This is possible. I just wanted to expand everyone's minds :)
Stick by your guns. The mechanism is more general than resource
management. Like decorators, the encapsulation of a try/finally wrapper
is completely generic and not married to the resource management
context.
Raymond
More information about the Python-Dev
mailing list