[issue13302] Clarification needed in C API arg parsing

New submission from Sandro Tosi <sandro.tosi@gmail.com>: Hello, given I can't fully comprehend the user request (sent on docs@ as of http://mail.python.org/pipermail/docs/2011-September/005791.html), I'm just echoing it :
---------- assignee: docs@python components: Documentation messages: 146687 nosy: docs@python, sandro.tosi priority: normal severity: normal stage: needs patch status: open title: Clarification needed in C API arg parsing versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________

Antoine Pitrou <pitrou@free.fr> added the comment: It's already in the 3.x docs (but not 2.x): “Strings and buffers These formats allow to access an object as a contiguous chunk of memory. You don’t have to provide raw storage for the returned unicode or bytes area. Also, you won’t have to release any memory yourself, except with the es, es#, et and et# formats.” http://docs.python.org/dev/c-api/arg.html#strings-and-buffers ---------- nosy: +pitrou _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________

Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment: New changeset b2b7104691c9 by Sandro Tosi in branch '2.7': Issue #13302: backport part of 3ed28f28466f http://hg.python.org/cpython/rev/b2b7104691c9 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________

Sandro Tosi <sandro.tosi@gmail.com> added the comment: Thanks Antoine for the pointer. ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________

Antoine Pitrou <pitrou@free.fr> added the comment: It's already in the 3.x docs (but not 2.x): “Strings and buffers These formats allow to access an object as a contiguous chunk of memory. You don’t have to provide raw storage for the returned unicode or bytes area. Also, you won’t have to release any memory yourself, except with the es, es#, et and et# formats.” http://docs.python.org/dev/c-api/arg.html#strings-and-buffers ---------- nosy: +pitrou _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________

Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment: New changeset b2b7104691c9 by Sandro Tosi in branch '2.7': Issue #13302: backport part of 3ed28f28466f http://hg.python.org/cpython/rev/b2b7104691c9 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________

Sandro Tosi <sandro.tosi@gmail.com> added the comment: Thanks Antoine for the pointer. ---------- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13302> _______________________________________
participants (3)
-
Antoine Pitrou
-
Roundup Robot
-
Sandro Tosi