PEP308: Yet another syntax proposal

Aahz aahz at pythoncraft.com
Tue Feb 11 10:18:15 EST 2003


In article <3E48AEBE.37CB4B46 at alcyone.com>,
Erik Max Francis  <max at alcyone.com> wrote:
>Aahz wrote:
>>
>> Because the extra punctuation calls out more clearly, IMO.  Also, I
>> like the "||" meaning "or".
>
>But || only means "or" in this sense if you've experienced it from the
>C-like languages.  The bitwise or operator from Python is |; seeing two
>in a row doesn't make one automatically think, "Oh, that must be
>_logical_ or!  So that question mark is a test!  Oh, this is a little
>baby if-then-else!"

No, of course not.  But at least the two meanings are *related*.  I
don't consider the ability to understand conditional expressions without
reading the documentation a high priority.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Register for PyCon now!  http://www.python.org/pycon/reg.html




More information about the Python-list mailing list