Movatterモバイル変換


[0]ホーム

URL:


Beginner's Question (or bug in python?)

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


"Rolf Magnus" <ramagnus at zvw.de> wrote in messagenews: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> ignoredWhen a module is destroyed (because the program terminates), the order inwhich 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-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp