Checking whether an object has been created.

Olivier CARRERE olivier at vibes.net
Tue Oct 17 12:52:12 EDT 2000


Hello,

has anyone a clean method to check if an object has been instanciated?

What I wish to do is to create an object if it hasn't been made before,
ie something like this :

if not exists(objectReference):
	objectReference=Object()
# perform stuff on objectReference

Thanks in advance,

- Olivier



More information about the Python-list mailing list