[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-06-13 Thread STINNER Victor
STINNER Victor added the comment: r81811 and r81923 improve Doc/c-api/arg.rst. I opened more specific issues to improve getargs code and documentation: - #8991: PyArg_Parse*() functions: reject discontinious buffers - #8926: getargs.c: release the buffer on error - #8952: Doc/c-api/arg.rst:

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-05-28 Thread STINNER Victor
STINNER Victor added the comment: Patch to update the documenation, especially input types for PyArg_ParseTuple() and output types for Py_BuildValue(): - add bytes and/or bytearray when buffer compatible object is accepted to be more explicit - "es", "et", "es#", "et#" don't accept buffer c

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-05-28 Thread STINNER Victor
STINNER Victor added the comment: Patch to cleanup getbuffer() and convertbuffer(): - getbuffer() doesn't call convertbuffer() if pb->bf_getbuffer==NULL. If pb->bf_getbuffer==NULL, PyObject_GetBuffer() fails and so the call to convertbuffer() is useless. - convertbuffer() calls getbuffer() t

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-05-04 Thread STINNER Victor
STINNER Victor added the comment: See also #8592. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-04-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +barry, benjamin.peterson, brett.cannon, georg.brandl ___ Python tracker ___ ___ Python-bugs-list

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-04-03 Thread STINNER Victor
STINNER Victor added the comment: The PEP 3118 describes some points about discontigious buffers, but there is no module nor third party libraries supporting them. PIL 1.1.7 (the last version) doesn't support the buffer API (an image can not be "exported" as a buffer, but PIL accepts a buffer

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-03-23 Thread STINNER Victor
STINNER Victor added the comment: See also issue #2322. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-03-23 Thread STINNER Victor
New submission from STINNER Victor : http://docs.python.org/py3k/c-api/arg.html contains some ambiguous (string or Unicode object) definitions: what is a string? what is an unicode object? Is it a string or not? The problem is that the documentation is for Python2: the code was changed, but no