How to delete/mainpulate global variables ??

logistix logstx at bellatlantic.net
Wed Mar 20 18:17:51 EST 2002


If the statement 'del val' isn't doing what you need, store the variable in a global list or dictionary.  That way all references will point to the same underlying object.  A modification in one place will show up everywhere.

-- 
-

  "Berenike Loos" <berenikeloos at gmx.de> wrote in message news:mailman.1016653600.19685.python-list at python.org...
  Hi

  I am using two function in my program. The first one reads out some text of an TK entry field and puts it into a global variable.

  The other function has to read out the global variable and has to print out the text. Now the global variable should be deleted, so if I call the second function again without calling the first, NO text will be displayed.

  thx a lot 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020320/9f089f56/attachment.html>


More information about the Python-list mailing list