[Python-Dev] Re: [Python-checkins] python/dist/src/Objects stringobject.c,2.171,2.172

Guido van Rossum guido@python.org
Sun, 28 Jul 2002 12:38:43 -0400


> To answer my own question, it appears that I should use 
> PyFloat_AsDouble() and PyInt_AsLong() and check for an error.
> I don't know why I didn't do this before.  This restores the
> original behaviour.

Good!

> I'll check this in later.  Let me know if I screwed up again.
> 
> I'll also update the tests to check for the exception.

Great!

--Guido van Rossum (home page: http://www.python.org/~guido/)