[issue25548] Show the address in the repr for class objects

Raymond Hettinger report at bugs.python.org
Sat May 21 21:27:30 EDT 2016


Raymond Hettinger added the comment:

> I don't quite get why the memory address is helpful

For the same reason that we've found the address to helpful in other reprs, it helps people understand that classes are objects just like anything else and to know which objects are distinct.

My instructors have found that this matters when teaching Python and more than one of them immediately noticed the loss of information when switching from teaching Python 2 to Python 3.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25548>
_______________________________________


More information about the Python-bugs-list mailing list