Question mark in variable and function names

Dan Christensen jdc at uwo.ca
Wed Oct 6 15:36:19 EDT 2004


Fernando Perez <fperez528 at yahoo.com> writes:

>> Andr? N?ss <andre.naess at gmail.com> wrote:
>> 
>>> One thing I liked about Lisp was the ability to use the question mark
>>> (and the exclamation mark) in function names.
>
> Well, there would go the two remaining special, useful chars in ipython:
>
> In [4]: x?
...
> In [5]: !uname -a
...

If python only allowed ! and ? at the end of identifiers, then !uname
would be fine, and ?x could be used in place of x?

But the problem mentioned in other post with code like x!=0 is more
serious. 

Dan



More information about the Python-list mailing list