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 eli.bendersky
Recipients barry, eli.bendersky, eric.smith, ethan.furman, serhiy.storchaka
Date 2013-08-14.13:59:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376488752.77.0.227229442864.issue18738@psf.upfronthosting.co.za>
In-reply-to
Content
In Objects/unicodeobject.c when it gets into mainformatlong, an IntEnum is recognized as an integer (passes PyLong_Check) and goes into formatlong. There, in the cases of 'd', 'i', 'u' it has:

    case 'u':
        /* Special-case boolean: we want 0/1 */
        if (PyBool_Check(val))
            result = PyNumber_ToBase(val, 10);
        else
            result = Py_TYPE(val)->tp_str(val);
        break;

So tp_str is invoked...
History
Date User Action Args
2013-08-14 13:59:12eli.benderskysetrecipients: + eli.bendersky, barry, eric.smith, ethan.furman, serhiy.storchaka
2013-08-14 13:59:12eli.benderskysetmessageid: <1376488752.77.0.227229442864.issue18738@psf.upfronthosting.co.za>
2013-08-14 13:59:12eli.benderskylinkissue18738 messages
2013-08-14 13:59:12eli.benderskycreate