The most annoying typo error...

Skip Montanaro skip at pobox.com
Wed May 7 06:55:27 EDT 2003


    Peter> ....Is when I do something like this:

    Peter> x = somefunction(a, b, c, d),

    Peter> and when I run Python I get a TypeError error.

What background do you have that makes you terminate function calls (or
language statements) with a comma?  The problem you're experiencing is one
I've never personally encountered.

    Peter> So my question is: has anyone come up with some way of alerting
    Peter> users to this sort of error? (e.g. more verbose TypeError
    Peter> messages? Emacs warning ["Did you really mean to create a 1
    Peter> element tuple?"??) Just wondering.

PyChecker enhancement maybe?

Skip





More information about the Python-list mailing list