Message139637
| Author | pitrou |
|---|---|
| Recipients | greg.ath, neologix, pitrou, vstinner |
| Date | 2011-07-02.11:50:17 |
| SpamBayes Score | 0.022896219 |
| Marked as misclassified | No |
| Message-id | <1309607418.2.0.152896808487.issue12352@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
+ if gc.isenabled(): + thresholds = gc.get_threshold() + self.addCleanup(gc.set_threshold, *thresholds) + else: + gc.enable() + self.addCleanup(gc.disable) It seems you won't restore the thresholds if the GC wasn't enabled at first. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-07-02 11:50:18 | pitrou | set | recipients: + pitrou, vstinner, neologix, greg.ath |
| 2011-07-02 11:50:18 | pitrou | set | messageid: <1309607418.2.0.152896808487.issue12352@psf.upfronthosting.co.za> |
| 2011-07-02 11:50:17 | pitrou | link | issue12352 messages |
| 2011-07-02 11:50:17 | pitrou | create | |