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 vstinner
Recipients vstinner
Date 2011-01-27.23:07:53
SpamBayes Score 4.4349517e-06
Marked as misclassified No
Message-id <1296169676.06.0.782920211182.issue11032@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./python 
Python 3.2rc1+ (unknown, Jan 18 2011, 00:55:20) 
>>> import _string
>>> _string.formatter_field_name_split(1)
python: Objects/stringlib/string_format.h:1347: formatter_field_name_split: Assertion `((((((PyObject*)(self))->ob_type))->tp_flags & ((1L<<28))) != 0)' failed.
Abandon

$ ./python 
Python 3.2rc1+ (unknown, Jan 18 2011, 00:55:20) 
>>> import _string
>>> _string.formatter_parser(1)
python: Objects/stringlib/string_format.h:1206: formatter_parser: Assertion `((((((PyObject*)(self))->ob_type))->tp_flags & ((1L<<28))) != 0)' failed.
Abandon

Attached patch fixes both crashes and add tests on the _string module (which has only these two functions).
History
Date User Action Args
2011-01-27 23:07:56vstinnersetrecipients: + vstinner
2011-01-27 23:07:56vstinnersetmessageid: <1296169676.06.0.782920211182.issue11032@psf.upfronthosting.co.za>
2011-01-27 23:07:54vstinnerlinkissue11032 messages
2011-01-27 23:07:53vstinnercreate