2016-10-12 11:34 GMT+02:00 INADA Naoki <songofaca...@gmail.com>:
> I see.  My proposal should be another PEP (if PEP is required).

I don't think that adding a single method deserves its own method.

I like the idea with Serhiy's API (as Python 2 buffer constructor):

bytes.frombuf(buffer, [offset, size])
bytearray.frombuf(buffer, [offset, size])
memoryview.frombuf(buffer, [offset, size])

Victor
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to