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 <rep...@bugs.python.org> <http://bugs.python.org/issue27501> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com