[Python-checkins] r67998 - sandbox/trunk/io-c/_textio.c

Amaury Forgeot d'Arc amauryfa at gmail.com
Mon Dec 29 01:40:34 CET 2008


Benjamin Peterson wrote:
> On Sun, Dec 28, 2008 at 5:48 PM, amaury. forgeotdarc
> <python-checkins at python.org> wrote:
> > Author: amaury.forgeotdarc
> > Date: Mon Dec 29 00:48:35 2008
> > New Revision: 67998
> >
> > Log:
> > It seems necessary to add an extra level of parentheses to parse a tuple.
>
> Technically you should be using PyArg_ParseTuple anyway.

>From the documentation I thought that PyArg_ParseTuple was reserved
for parsing function arguments.
In any case the error message can be misleading if the tuple does not
have the requested number of items.

-- 
Amaury Forgeot d'Arc


More information about the Python-checkins mailing list