[issue19666] Format string for ASCII unicode or bytes-like object as readonly buffer

Christian Heimes report at bugs.python.org
Wed Nov 20 19:14:16 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19666>
_______________________________________


More information about the Python-bugs-list mailing list