[New-bugs-announce] [issue27501] Create a collections.abc class that describes PEP 3118 buffer
Daniel Moisset
report at bugs.python.org
Tue Jul 12 14:07:23 EDT 2016
New submission from Daniel Moisset:
The buffer protocol is a low level C protocol, but even if it doesn't expose a specific python API, it's currently not possible to say "this object implements the buffer protocol" in Python
This might be useful for some applications, including PEP-484 typing hints. It would be useful to have a collections.abc.Buffer which already registers the types that already support the protocol (bytes, strings, array.array, struct, mmap, ctype arrays/pointers, etc)
----------
messages: 270261
nosy: Daniel Moisset
priority: normal
severity: normal
status: open
title: Create a collections.abc class that describes PEP 3118 buffer
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27501>
_______________________________________
More information about the New-bugs-announce
mailing list