Message111946
| Author | ysj.ray |
|---|---|
| Recipients | andrea.corbellini, pitrou, ysj.ray |
| Date | 2010-07-29.15:03:00 |
| SpamBayes Score | 0.040595103 |
| Marked as misclassified | No |
| Message-id | <1280415782.95.0.300048114685.issue9417@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This should not be a problem, I think. We cannot avoid such a circular reference. I believe the main reason of the circular reference is in MyClass.__mro__, this is a list and contains a reference to MyClass. You can add "__slots__ = []" to MyClass's class body to avoid __dict__(the one you mentioned) and another member which contains two more references to MyClass, but the __mro__ still contains the last reference to MyClass. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2010-07-29 15:03:03 | ysj.ray | set | recipients: + ysj.ray, pitrou, andrea.corbellini |
| 2010-07-29 15:03:02 | ysj.ray | set | messageid: <1280415782.95.0.300048114685.issue9417@psf.upfronthosting.co.za> |
| 2010-07-29 15:03:01 | ysj.ray | link | issue9417 messages |
| 2010-07-29 15:03:00 | ysj.ray | create | |