RIIA in Python 2.5 alpha: "with... as"

"Martin v. Löwis" martin at v.loewis.de
Tue Apr 11 09:49:15 EDT 2006


Alexander Myodov wrote:
> Sorry, I misworded the question - RIIA is indeed present at least by
> the reason that the examples from PEP pass. Agree, my problem is a bit
> different, and I a bit mixed up initialization/acquisition with
> lifetime blocks. So, seems that we indeed have one and still don't
> have another.
> Or maybe you have an idea how this can be fixed? 

Why do you want to restrict the lifetime of a variable?

If you want the variable to become unassigned, just invoke the del
statement.

Regards,
Martin



More information about the Python-list mailing list