➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 rupole
收信人 rupole
日期 2008-08-10.18:10:22
SpamBayes Score 0.002616591
Marked as misclassified 否
Message-id <1218391824.09.0.805958642576.issue3537@psf.upfronthosting.co.za>
In-reply-to
内容
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:24rupole修改recipients: + rupole
2008-08-10 18:10:24rupole修改messageid: <1218391824.09.0.805958642576.issue3537@psf.upfronthosting.co.za>
2008-08-10 18:10:23rupole链接issue3537 messages
2008-08-10 18:10:22rupole创建