PEP 308: ternary operator

Erik Max Francis max at alcyone.com
Fri Feb 21 21:52:28 EST 2003


phil hunt wrote:

> No, it suggests that we should we should make things easy for the
> majority of python programmers who also use other languages. Python
> will never become C or Perl, it will always be Python. However,
> Python shares lots of features with these langauges (and other
> langs) already, for example: use of "if" keyword to denote
> conditionals, use of symbols "0123456789" to denote numbers, use of
> "+" to denote addition, use of "=" to denote assignment, etc, etc.

And more than that, Python really takes a lot of cues from the C family
of languages (as do many modern high-level languages).  Take == vs. =,
or a 0x prefix for hexadecimal literal and a 0 prefix for an octal
literal, etc.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ The multitude of books is making us ignorant.
\__/ Voltaire
    The laws list / http://www.alcyone.com/max/physics/laws/
 Laws, rules, principles, effects, paradoxes, etc. in physics.




More information about the Python-list mailing list