homepage

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.

Author rupole
Recipients rupole
Date 2008年08月10日.18:10:22
SpamBayes Score 0.002616591
Marked as misclassified No
Message-id <1218391824.09.0.805958642576.issue3537@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008年08月10日 18:10:24rupolesetrecipients: + rupole
2008年08月10日 18:10:24rupolesetmessageid: <1218391824.09.0.805958642576.issue3537@psf.upfronthosting.co.za>
2008年08月10日 18:10:23rupolelinkissue3537 messages
2008年08月10日 18:10:22rupolecreate

AltStyle によって変換されたページ (->オリジナル) /