Message270625
This can break third-party code. For example the code that explicitly makes the repr containing a subclass name:
class MyStr(str):
def __repr__(self):
return 'MyStr(%s)' % str.__repr__(self)
I think the chance of breaking third-party code for bytearray or deque is smaller, since the repr is not literal. |
|
Date |
User |
Action |
Args |
2016-07-17 10:00:55 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, xiang.zhang |
2016-07-17 10:00:55 | serhiy.storchaka | set | messageid: <1468749655.29.0.991701852942.issue27541@psf.upfronthosting.co.za> |
2016-07-17 10:00:55 | serhiy.storchaka | link | issue27541 messages |
2016-07-17 10:00:55 | serhiy.storchaka | create | |
|