Author serhiy.storchaka
Recipients rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-07-17.10:00:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468749655.29.0.991701852942.issue27541@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-07-17 10:00:55serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, xiang.zhang
2016-07-17 10:00:55serhiy.storchakasetmessageid: <1468749655.29.0.991701852942.issue27541@psf.upfronthosting.co.za>
2016-07-17 10:00:55serhiy.storchakalinkissue27541 messages
2016-07-17 10:00:55serhiy.storchakacreate