消息 [70990]
If the first item can't be inserted the interpreter will crash
eventually.
while 1:
try:
d = { 'a':a,
'b':'b',
'c':'c',
'd':'d',
'e':'e',
'f':'f',
'g':'g',
'h':'h',
'i':'i',
'j':'j',
'k':'k',
'l':'l',
'm':'m',
'n':'n',
'o':'o'
}
except:
pass
As best I can tell, this only happens for the first item.
In a debug build, this assert fails on the second time thru
the loop (dictobject.c, line 247):
assert (mp->ma_table == mp->ma_smalltable);
Apparently something is leaving one of the entries in the list
of preallocated dict objects in an inconsistent state. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2008-08-10 18:10:24 | rupole | 修改 | recipients:
+ rupole |
| 2008-08-10 18:10:24 | rupole | 修改 | messageid: <1218391824.09.0.805958642576.issue3537@psf.upfronthosting.co.za> |
| 2008-08-10 18:10:23 | rupole | 链接 | issue3537 messages |
| 2008-08-10 18:10:22 | rupole | 创建 | |
|