with statements does not delete the object

yves at zioup.com yves at zioup.com
Thu Sep 22 07:24:03 CEST 2011


Is this the expected behaviour:


     with mylib.token() as t:
       do_something

     dir()

In the last dir(), after the with "loop" is finished, t still shows up... I 
expected it to be unreferenced by then.

-- 
Yves.                                                  http://www.SollerS.ca/
                                                        http://ipv6.SollerS.ca
                                                        http://blog.zioup.org/



More information about the Python-list mailing list