Testing for an object

Adrian Phillips (tandem@freeze.oslo.dnmi.no)
Wed, 16 Mar 1994 12:20:09 +0000

How do you test to see if an object has been created, ie. instead of setting
another flag to say you've initialised something can you do:

if exists(<object name>):

rather than accessing the object using
try:
object.foo
except NameError: (or whatever it is)

Thanks again,

don't you just love Newbies

Adrian

-- 
---------------------
 ========================================================================
=   	    	    	    	    	    	    	    	    	 =
= Adrian Phillips at The Norwegian Meteorological Institute   	    	 =
=    	    	    	    	    	    	    	    	    	 =
= BUT any thoughts in this are purely my own and have nothing to do with =
= this establishment, thankfully.   	    	    	    	    	 =
=   	    	    	    	    	    	    	    	    	 =
= Internet: daap@typhoon.oslo.dnmi.no  	    	    	    	    	 =
= Phone: 47 22 96 32 09	    	    	    	    	    	    	 =
= Fax: 47 22 96 30 50	    	    	    	    	    	    	 =
=   	    	    	    	    	    	    	    	     	 =
 ========================================================================