New submission from Christian Heimes: I could use a format string for either ASCII unicode or bytes buffer in a few places, e.g.
a* (bytes, bytearray, bytes-like object or ASCII unicode) [Py_buffer] Like y* it should handle PyBUF_SIMPLE with 'C' contiguous but it should only accept one dimensional buffers. In case the object is an ASCII PyUnicode_Object it should return its ASCII data as Py_buffer. ---------- components: Interpreter Core messages: 203516 nosy: christian.heimes priority: normal severity: normal stage: needs patch status: open title: Format string for ASCII unicode or bytes-like object as readonly buffer type: enhancement versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19666> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com