Question mark in variable and function names

George Yoshida ml at dynkin.com
Wed Oct 6 11:28:27 EDT 2004


Andr? N?ss wrote:
> One thing I liked about Lisp was the ability to use the question mark
> (and the exclamation mark) in function names. I found this
> particularily useful when checking boolean properties of a object like
> for example myObj.isContextSet. It just feels so much more natural to
> write myObj.contextSet?
> 
> I also found it neat that destructive operations were clearly marked
> with !.
> 
> Is there anything preventing this from being possible in Python?

That will make Python more similar to Ruby.

--George



More information about the Python-list mailing list