[PATCH] A compromise on case
Will Ware
wware at world.std.com
Tue May 23 20:14:32 EDT 2000
Nick Mathewson (nickm at mit.edu) wrote:
> >>> print MAP(square, [1,2,3])
> NameError: No such name as 'MAP'. Perhaps you meant 'map'?
> >>> print string.JOIN(['a', 'b', 'c'])
> AttributeError: JOIN. Perhaps you meant 'join'?
This is definitely the coolest most ingenious thing I've seen all day,
maybe all week. The whole case-sensitivity thread was staring to grate
on my retinae, but this makes it all worthwhile.
It would be good to put some #ifdef's in ceval.c and wherever else is
applicable, and maybe an option in the 'configure' script, so that
different flavors of error message could be invoked when the python
executable is built.
--
- - - - - - - - - - - - - - - - - - - - - - - -
Resistance is futile. Capacitance is efficacious.
Will Ware email: wware @ world.std.com
More information about the Python-list
mailing list