Case confusion, or exception befuddlement? (was Re: Case-sensitivity: why -- or why not? (was Re: Damnation!))

Fredrik Lundh effbot at telia.com
Mon May 22 11:00:25 EDT 2000


Nick Mathewson <nickm at mit.edu> wrote:
>   Obviously, this is confusing.  But is the problem in the case-sensitivity,
>   or in the error message?  Suppose that instead, a newbie saw:
> 
>     Traceback (innermost last):
>       File "<stdin>", line 1, in ?
>     NameError: No such variable as 'X'.
> 
>   Or even better:
> 
>     NameError: No such variable as 'X'.  Did you mean 'x' instead?

or the ABC way:

    >>> PUT 3 IN x
    >>> PRINT X
    There's something I can't resolve in your command
        PRINT X
    *** The problem is: you haven't told me HOW TO PRINT X

okay, okay, I get the point...

case-sensitive-ly yrs /F




More information about the Python-list mailing list