KraftDiner wrote: > if I create an object like... > > obj = None > ... > obj = anObject() > > can obj set itself to none in some method of the class? >
Do you mean like this?
>>> def foo():
... global foo
... del foo
...
>>> foo()
>>> foo
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'foo' is not defined
Cheers,
Ron
--
http://mail.python.org/mailman/listinfo/python-list
