[Python-Dev] Re: [Python-checkins] python/dist/src/Objects stringobject.c,2.171,2.172
Fredrik Lundh
fredrik@pythonware.com
Sun, 28 Jul 2002 17:49:27 +0200
> SF patch #577031, remove PyArg_Parse() since it's deprecated
> ! v = PyNumber_Float(v);
> ! if (!v)
> return -1;
> v = PyNumber_Int(v);
> ! if (!v)
> return -1;
umm.
doesn't PyNumber_Float and PyNumber_Int convert its argument to
a float/integer, if it's not already the right type?
in earlier versions of Python, "%g" % "1.0" raised a TypeError. does
it still do that with this patch in place?
</F>