[Tutor] defined()

Tim Johnson tim at johnsons-web.com
Tue Apr 4 04:28:46 CEST 2006


* Bob Gailer <bgailer at alum.rpi.edu> [060403 17:12]:
> 
> def defined(name):
>     return name in globals()
>

 Hah! Good tip. I'll call it value()

 I think "language wars" are a waste of time, but
 I like the way that using different languages 
 inform the programmer.

 cheers
 tj

-- 
Tim Johnson <tim at johnsons-web.com>
      http://www.alaska-internet-solutions.com


More information about the Tutor mailing list