Author gvanrossum
Recipients Ronan.Lamy, gvanrossum, larry, pitrou, pjenvey, serhiy.storchaka, vstinner
Date 2016-04-23.17:21:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461432093.57.0.15333711464.issue26800@psf.upfronthosting.co.za>
In-reply-to
Content
I'm a little bit worried about removing support for bytearray in these cases. It used to be quite easy to support bytes and bytearray (just say you support the buffer API), and I even added language to PEP 484 suggesting that type checkers should consider bytearray (and memoryview) as valid arguments to anything that's declared as taking bytes. I know this is not universally true (a trivial example is a dict with bytes keys) but the existence of the buffer API makes it easy to do in most cases. Why are we moving away from this? If we do, we should probably remove that language from PEP 484 (and the code from mypy, but that's a separate thing).
History
Date User Action Args
2016-04-23 17:21:33gvanrossumsetrecipients: + gvanrossum, pitrou, vstinner, larry, pjenvey, serhiy.storchaka, Ronan.Lamy
2016-04-23 17:21:33gvanrossumsetmessageid: <1461432093.57.0.15333711464.issue26800@psf.upfronthosting.co.za>
2016-04-23 17:21:33gvanrossumlinkissue26800 messages
2016-04-23 17:21:33gvanrossumcreate