This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pyarg_parsetuple docs and py_buffer
Type: Stage: resolved
Components: Documentation Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, exarkun, mark.dickinson, pitrou, vstinner
Priority: normal Keywords:

Created on 2011-01-06 00:32 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg125488 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-06 00:32
The docs for "s*" and friends should mention that contiguity of the buffer is automatically enforced.
msg125489 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-01-06 00:35
See also #8991.
msg125490 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-01-06 00:36
See also #8215.
msg125491 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-01-06 00:44
Ah ok, now I remember the story. I cleaned up getargs.c recently. r83197 (#8991) removes the support of discontinious buffers. I guess that most developers don't know what a discontinious buffer is and so they don't support this kind of buffer. Moreover, most PyArg_Parse*() formats don't provide information about the buffer (how it is stored in memory), and so the caller cannot handle discontinious anyway.

I think that even Python code developers don't know what a discontinious buffer is... I think that today there is just no program or library using Python discontinious buffer. And maybe the authors of the PEP forgot it too :-)
msg125514 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-01-06 07:21
Done in 3.2 and 3.1. For 2.7 the structure of the doc page would lead to too much repetition IMO.
History
Date User Action Args
2022-04-11 14:57:10adminsetgithub: 55049
2011-01-06 07:21:59pitrousetstatus: open -> closed
versions: - Python 2.7
nosy: exarkun, mark.dickinson, pitrou, vstinner, docs@python
messages: + msg125514

resolution: fixed
stage: needs patch -> resolved
2011-01-06 00:44:41vstinnersetnosy: exarkun, mark.dickinson, pitrou, vstinner, docs@python
messages: + msg125491
2011-01-06 00:36:35vstinnersetnosy: exarkun, mark.dickinson, pitrou, vstinner, docs@python
messages: + msg125490
2011-01-06 00:35:37vstinnersetnosy: exarkun, mark.dickinson, pitrou, vstinner, docs@python
messages: + msg125489
2011-01-06 00:33:07vstinnersetnosy: + vstinner
2011-01-06 00:32:07pitroucreate