ppperry added the comment: I don't quite get why the memory address is helpful, but you could work around this using a custom metaclass:
class IdMeta(type): def __repr__(cls): return super().__repr__()[:-1] + " at 0x%x>"%id(cls) class IdInRepr(metaclass=IdMeta):pass `IdInRepr` and all its subclasses will then have the memory address in their representation: <class 'module.name' at address> ---------- nosy: +ppperry _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25548> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com