Message31995
| Author |
ggenellina |
| Recipients |
| Date |
2007年05月15日.18:44:49 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
FWIW, the script name appears to be relevant as well. I were going to say that I could not reproduce it as it was; this same example saved as "a.py" doesn't show the error; "w.py" does.
To the OP: Module finalization is a fragile step; this is a long standing issue and could be improved, but anyway I don't think it can be made robust enough (this is just my opinion!). I usually try to *never* reference any globals in destructors. In this case, using self.__class__ instead of Person is safer and works fine; if other globals were needed they could be passed as default argument values. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:53:40 | admin | link | issue1717900 messages |
| 2007年08月23日 14:53:40 | admin | create |
|