Message265883
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> |
|
Date |
User |
Action |
Args |
2016-05-19 19:09:37 | ppperry | set | recipients:
+ ppperry, rhettinger, terry.reedy, matrixise, Winterflower |
2016-05-19 19:09:37 | ppperry | set | messageid: <1463684977.52.0.506376563289.issue25548@psf.upfronthosting.co.za> |
2016-05-19 19:09:37 | ppperry | link | issue25548 messages |
2016-05-19 19:09:37 | ppperry | create | |
|