[Python-3000-checkins] r57416 - in python/branches/py3k: Include/structseq.h Modules/timemodule.c

Neal Norwitz nnorwitz at gmail.com
Fri Aug 24 23:49:14 CEST 2007


On 8/24/07, skip.montanaro <python-3000-checkins at python.org> wrote:
> Author: skip.montanaro
> Date: Fri Aug 24 23:11:00 2007
> New Revision: 57416
>
> Modified:
>    python/branches/py3k/Include/structseq.h
>    python/branches/py3k/Modules/timemodule.c
> Log:
> Remove PyArg_Parse usage from time module.  (An extra set of eyeballs on
> this would be nice.  I'm a little rusty.)

The code looks fine to me.

Does PyArg_ParseTuple() not work with structseqs?  IIRC you can
usually convert PyArg_Parse(args, "(...)", ...) to
PyArg_ParseTuple(args, "...", ...) (ie, change the name and drop the
parentheses).  It looks like this breaks down with 0-1 values though.
I assume all of this was fallout from the change from METH_OLDARGS to
METH_VARARGS (and METH_O and METH_NOARGS).

n


More information about the Python-3000-checkins mailing list