Serhiy Storchaka added the comment: This isn't so easy. Supporting the buffer protocol can slowdown the common case -- str.
Do you have concrete use case for this feature or add it just as an extension of bytes and bytearray support? ---------- components: +Library (Lib) nosy: +bob.ippolito, ezio.melotti, rhettinger stage: -> patch review title: Accept memoryview in json.loads() -> Support the buffer protocol in json.loads() type: -> enhancement versions: -Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30193> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com