[Python-3000] symbols?
Barry Warsaw
barry at python.org
Tue Apr 11 14:56:33 CEST 2006
On Tue, 2006-04-11 at 10:47 +0400, Oleg Broytmann wrote:
> On Tue, Apr 11, 2006 at 12:58:47AM -0400, Kendall Clark wrote:
> > Hmm. Tastes vary, obviously. I don't consider using ? to signal
> > boolean returning functions or methods to be random.
>
> They look ugly in expressions:
>
> if python.has_punctuation?() and someone.uses_it_often?:
> print "Please don't do it!"
>
> PS. .uses_it_often? is an attribute, not a function here...
That's what _p suffix is for. :)
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-3000/attachments/20060411/239c060d/attachment.pgp
More information about the Python-3000
mailing list