Message203349
> No matter how it sounds, it certainly looks cleaner in code.
It's also unsafe and invasive, since it's a process-wide setting. An
iterator can be long-lived if it's being consumed slowly, so you've
disabled garbage collection for an unknown amount of time, without the
user knowing about it. Another thread could kick in and perhaps
re-enable it for whatever reason.
Oh if someone calls gc.collect() explicitly, the solution is suddenly
defeated. |
|
Date |
User |
Action |
Args |
2013-11-19 10:24:05 | pitrou | set | recipients:
+ pitrou, gvanrossum, dcjim, tseaver, mark.dickinson, kristjan.jonsson, vstinner, ajaksu2, jon, benjamin.peterson, vdupras, elachuni, BreamoreBoy, qelan |
2013-11-19 10:24:05 | pitrou | link | issue7105 messages |
2013-11-19 10:24:05 | pitrou | create | |
|