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 python-dev, serhiy.storchaka, steven.daprano, vstinner
Date 2014-07-22.11:52:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406029931.43.0.136285570287.issue22031@psf.upfronthosting.co.za>
In-reply-to
Content
> Changing the repr risks breaking doctests.

That's why the change was only done in Python 3.5. To port your application to Python 3.5, you can modify you doctests to use "..." (ellipsis option of doctests).

> That *might* be acceptable if there was some obvious benefit
> to the change,

It's better to have consistent representation of objects. Low-level debuggers like gdb uses hexadecimal, not decimal. I'm regulary using gdb, and having the memory address in hexadecimal helps.

By the way, you should never rely on the (exact) representation in your unit tests :-)
History
Date User Action Args
2014-07-22 11:52:11vstinnersetrecipients: + vstinner, steven.daprano, python-dev, serhiy.storchaka
2014-07-22 11:52:11vstinnersetmessageid: <1406029931.43.0.136285570287.issue22031@psf.upfronthosting.co.za>
2014-07-22 11:52:11vstinnerlinkissue22031 messages
2014-07-22 11:52:11vstinnercreate