[Python-3000] Removal of PyArg_Parse()

Gregory P. Smith greg at electricrain.com
Sat Aug 25 21:38:15 CEST 2007


On Fri, Aug 24, 2007 at 08:30:48PM -0700, Neal Norwitz wrote:
> On 8/24/07, Guido van Rossum <guido at python.org> wrote:
> > On 8/24/07, skip at pobox.com <skip at pobox.com> wrote:
> > >
> > > Guido> Are there any existing uses (in the core) that are hard to
> > > Guido> replace with PyArg_ParseTuple()?
> > >
> > > There are lots of uses where the arguments aren't tuples. I was
> > > particularly vexed by the time module because it was used to extract
> > > arguments both from tuples and from time.struct_time objects.
>> There are 45 uses in */*.c spread across 9 modules:
> arraymodule.c, posixmodule.c,
> _hashopenssl.c (2), dbmmodule.c (4), gdbmmodule.c (2),
> mactoolboxglue.c (5), stringobject.c (2)

_hashopenssl.c will stop using it soon enough as I modify it to take
objects supporting the buffer api.
-greg


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /