Ternary operator (Re: Ternery operator)
Gerrit Holl
gerrit at nl.linux.org
Mon Sep 8 09:53:45 EDT 2003
Michael Geary wrote:
> > Andrew Chalk wrote:
> > > Is there a python equivalent of the C ternery operator?
>
> Peter Hansen wrote:
> > See http://www.python.org/cgi-bin/faqw.py?query=4.16&req=search
>
> As a newcomer to Python, I found it interesting to read the PEP for this:
>
> http://www.python.org/peps/pep-0308.html
>
> In retrospect, it seems obvious that the way the voting was conducted
> insured that no ternary operator would be added to the language.
It may be interesting to read the thread on c.l.py that took place befor
the vote was taken - it contains a lot of information, including a
discussion on this statement.
yours,
Gerrit.
--
219. If a physician make a large incision in the slave of a freed man,
and kill him, he shall replace the slave with another slave.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
http://www.sp.nl/
More information about the Python-list
mailing list