Message62908
| Author | vdupras |
|---|---|
| Recipients | dcjim, vdupras |
| Date | 2008-02-24.14:25:36 |
| SpamBayes Score | 0.069826156 |
| Marked as misclassified | No |
| Message-id | <1203863138.5.0.310232964435.issue839159@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I made a patch to fix the problem. The cleaning up of they weakref keys or values will be held until all references to iterators created by the weakdict are dead. I also couldn't resist removing code duplication of code in items(), keys() and values(). At first, I couldn't understand why this whole remove(), _remove() and selfref() mechanism was in place. I had removed them and replaced them with methods, and the tests still passed. Then I realized it was to make sure keys and values didn't prevent the weak dicts from being freed. I added tests for this. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-02-24 14:25:39 | vdupras | set | spambayes_score: 0.0698262 -> 0.069826156 recipients: + vdupras, dcjim |
| 2008-02-24 14:25:38 | vdupras | set | spambayes_score: 0.0698262 -> 0.0698262 messageid: <1203863138.5.0.310232964435.issue839159@psf.upfronthosting.co.za> |
| 2008-02-24 14:25:37 | vdupras | link | issue839159 messages |
| 2008-02-24 14:25:37 | vdupras | create | |