[Python-ideas] What about allowing '?' in method names?
veloso at verylowsodium.com
Thu Aug 6 17:16:34 CEST 2009
On Wed, Aug 5, 2009 at 9:01 PM, Tennessee
Leeuwenburg<tleeuwenburg at gmail.com> wrote:
> def shouldSomethingHappen?(self, context):
> I just think it looks nicer, and is a good hint that a true/false or other
> kind of flag is likely to come back.
Two problems I immediately see with this:
1) '?' is punctuation, and uninitiated readers are likely to guess
that it is some sort of postfix operator.
2) IPython gives a special meaning to ?, and it would be a shame to
collide with that.
More information about the Python-ideas