> > 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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to