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

2014-10-14 Thread Stefan Krah

Changes by Stefan Krah :


--
nosy:  -skrah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-11-20 Thread Christian Heimes

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-11-20 Thread Antoine Pitrou

Antoine Pitrou added the comment:

It seems this would add a dependency to the unicode implementation (other 
unicode representations may not allow you to take a Py_buffer to the ASCII 
data).

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-11-20 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo, skrah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-11-21 Thread STINNER Victor

STINNER Victor added the comment:

Where do you plan to use this new format? Can you please give examples?

> (other unicode representations may not allow you to take a Py_buffer to the 
> ASCII data).

Py_buffer and PyArg_ParseTuple() are very specific to CPython.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-09 Thread Batuhan


Batuhan  added the comment:

Don't we need to discuss it more before triage it as "patch required"?

--
nosy: +BTaskaya

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2019-06-10 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

"needs patch" doesn't mean it has been accepted, it's just a common state for 
issues where nobody has written any code even as a proof of concept.

Christian - is this still desired?

--
nosy: +gregory.p.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com