[Python-Dev] 3-way result of PyObject_IsTrue() considered PITA (original) (raw)

Guido van Rossum guido@python.org
Wed, 16 Apr 2003 14:01:46 -0400


> > The docs for PyObjectIsTrue() promise that the "function > > always succeeds". But in reality it can return an error > > result if an underlying method returns an error. > > Then the docs need to be repaired!

Done.

Thanks! But didn't you say that you had found code (in core Python) that didn't account for failures? Shouldn't that be fixed too?

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