How to know when a variable is set

Michael Hudson mwh at python.net
Wed Nov 14 16:49:23 CET 2001


madsurfer2000 at hotmail.com (-) writes:

> How can I test if a variable has been given a value, or if it's undefined?

Why would you want to do that?  Specificaly, in what context do you
want to know?

Cheers,
M.

-- 
 Two decades later, well-known hacker Henry Spencer described the 
 Perl scripting language as a "Swiss-Army chainsaw", intending to 
 convey his evaluation of the language as exceedingly powerful but 
 ugly and noisy and prone to belch noxious fumes.   -- the jargon file



More information about the Python-list mailing list