Postfix conditionals

Göktuğ Kayaalp self at gkayaalp.com
Sun Jan 5 15:54:37 EST 2014


On 05-01-2014 22:41, Roy Smith wrote:
> In article <mailman.4966.1388953508.18130.python-list at python.org>,
>   Göktu€ Kayaalp <self at gkayaalp.com> wrote:
>
>>     py> for i in [False]:
>>     ...     break if not i
> Python is not Perl.
Well done!  Good for you, that you know the fact; but you are not being 
constructive.

Python is not C either, but we have the while loop.  Python is not 
Smalltalk, but we have
classes.  Python is not LISP, but we have function literals.

Hopefully Guido did not have your approach back when he created Python, 
or we'd have an
assembly language or something instead today.




More information about the Python-list mailing list