Beginner's Question (or bug in python?)

Rainer Deyke root at rainerdeyke.com
Fri Apr 20 13:14:47 EDT 2001


"Rolf Magnus" <ramagnus at zvw.de> wrote in message
news:9bpi39$ae6$1 at news.sns-felb.debis.de...
> Hello. I have a problem understanding why the behaviour of python depends
> on class names. I have the following python script:

<snip>

> If I execute this, I get the following:
>
> initializing fred
> initializing foo
> Hello world
> deleting foo
> Exception exceptions.AttributeError: "'None' object has no attribute
> '__del__'" in <method Foo.__del__ of Foo instance at 80c3c00> ignored

When a module is destroyed (because the program terminates), the order in
which its contents are removed is arbitrary.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list