Case sensitivity

sismex01 at hebmex.com sismex01 at hebmex.com
Tue Feb 25 16:19:39 CET 2003


> From: Terry Reedy [mailto:tjreedy at udel.edu]
> Sent: Tuesday, February 25, 2003 9:15 AM
> 
> Is it still possible to add '-' as a name (and re-word) character?  Or
> does the implementation in C somehow prohibit this by requiring
> conformance to C's name rule?
> 
> Terry J. Reedy
>

I don't think it has anything to do with Python being implemented
in C, Jython is implemented in Java and it has the same "limitation".
More likely, it's an education kind of thing: we're educated to
think of "-" as an operator, an action (substraction), not an
"identifier character". :-/

Other languages don't have that limitation, but it's a bit
strange at first, reading identifiers such as "do-main-loop"
when you expect "do_main_loop", but after a while it *is* much
easier on the eyes.

So... ?

;-)

-gus





More information about the Python-list mailing list