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 christian.heimes, gregory.p.smith, mark.dickinson, vstinner
Date 2008-11-06.02:32:18
SpamBayes Score 0.07905292
Marked as misclassified No
Message-id <>
PyLong_FromLong() doesn't go into the 1 digit special case for 
negative number. You should use:
	/* Fast path for single-digits ints */
	if (!(abs_ival>>PyLong_SHIFT)) {
		v = _PyLong_New(1);
		if (v) {
			Py_SIZE(v) = sign;
			v->ob_digit[0] = abs_ival;
		return (PyObject*)v;
Date User Action Args
2008-11-06 02:32:20vstinnersetrecipients: + vstinner, gregory.p.smith, mark.dickinson, christian.heimes
2008-11-06 02:32:20vstinnersetmessageid: <>
2008-11-06 02:32:19vstinnerlinkissue4258 messages
2008-11-06 02:32:18vstinnercreate