Default scope of variables

Neil Cerutti neilc at
Fri Jul 5 17:36:02 CEST 2013

On 2013-07-05, Chris Angelico <rosuav at> wrote:
> On Fri, Jul 5, 2013 at 11:24 PM, Neil Cerutti
> <neilc at> wrote:
>> Python provides deterministic destruction with a different
>> feature.
> You mean 'with'? That's not actually destruction, it just does
> one of the same jobs that deterministic destruction is used for
> (RAII). It doesn't, for instance, have any influence on memory
> usage, nor does it ensure the destruction of the object's
> referents. But yes, it does achieve (one of) the most important
> role(s) of destruction.

Yes, thanks. I meant the ability to grab and release a
resource deterministically.

Neil Cerutti

More information about the Python-list mailing list