Error message

Jeremy Hylton jeremy at beopen.com
Wed May 31 14:42:19 EDT 2000


Michael Hudson <mwh21 at cam.ac.uk> writes:

> 
> I particularly hate:
> 
>    TypeError: illegal argument type for built-in operation
> 
> It just tells you nothing.  I've been meaning to whip round the Python
> sources and replace all the calls to PyErr_BadArgument (for 'tis that
> that gives the above message) with something a little more helpful,
> but I haven't got round to it yet...
> 

That would be a great project for someone to pick up.  There aren't
that many places that need to be fixed.  If you just focus on the
Objects directory, you'll be able to fix most of the ones that people
run into.

Jeremy



More information about the Python-list mailing list