Proposal: allow '?' and '!' in identifiers

Erik Max Francis max at alcyone.com
Mon Feb 19 23:32:52 EST 2001


Joshua Marshall wrote:

> Introducing some strange behavior with '!' may very well not be worth
> it.  However, while adding '?' as a legal identifier character does
> not make the Python more expressive, it can make Python programs more
> self-documenting.  The convention of ending predicate function names
> with '?' is useful, in my opinion.

But you don't need to literally have a ? at the end of the identifier to
get the message across if that is your desire.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ If love be good, from whence cometh my woe?
\__/ Chaucer
    Interstelen / http://www.interstelen.com/
 A multiplayer, strategic, turn-based Web game on an interstellar scale.



More information about the Python-list mailing list