[issue30193] Support the buffer protocol in json.loads()

2019-07-27 Thread Flavian Hautbois


Change by Flavian Hautbois :


--
keywords: +patch
pull_requests: +14746
pull_request: https://github.com/python/cpython/pull/14977

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30193] Support the buffer protocol in json.loads()

2017-05-08 Thread Nikolay Kim

Nikolay Kim added the comment:

I am fine with any decision. close with "won't fix" is fine too

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30193] Support the buffer protocol in json.loads()

2017-05-08 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> bob.ippolito

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30193] Support the buffer protocol in json.loads()

2017-05-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The proposed patch doesn't work with all objects supporting the buffer 
protocol, for example it doesn't work with array.array('u', '\ufeff[1,2,3]'). 
This is easy to fix. But I'm not sure that it is worth to complicate the code 
for adding support of the buffer protocol.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30193] Support the buffer protocol in json.loads()

2017-04-27 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Withdraw my note about slowing down str.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30193] Support the buffer protocol in json.loads()

2017-04-27 Thread Serhiy Storchaka

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com