消息 [194042]
> As for the __main__ dict, perhaps we're missing a decref somewhere.
Actually, it's not surprising. Blob's methods hold a reference to the __main__ globals, and there's still a Blob object alive in encodings.
If you replace the end of your script with the following:
for name, mod in sys.modules.items():
if name != 'encodings':
mod.__dict__["__blob__"] = Blob(name)
del name, mod, Blob
then at the end of the shutdown phase, remaining is empty. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2013-08-01 09:59:25 | pitrou | 修改 | recipients:
+ pitrou, gregory.p.smith, amaury.forgeotdarc, christian.heimes, Arfrever, python-dev, sbt |
| 2013-08-01 09:59:25 | pitrou | 修改 | messageid: <1375351165.31.0.90572956917.issue18214@psf.upfronthosting.co.za> |
| 2013-08-01 09:59:25 | pitrou | 链接 | issue18214 messages |
| 2013-08-01 09:59:25 | pitrou | 创建 | |
|