|
From: Colin J. W. <cj...@sy...> - 2006-02-20 01:45:15
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Alan G Isaac wrote:
<blockquote
cite="mid...@am..."
type="cite">
<pre wrap="">On Sun, 19 Feb 2006, "Colin J. Williams" apparently wrote:
</pre>
<blockquote type="cite">
<pre wrap="">The conditional expression (PEP 308) was rejected but is currently being
implemented in Python version 2.5. It will have the syntax A if C else B.
</pre>
</blockquote>
<pre wrap=""><!---->
It's coming
<a class="moz-txt-link-freetext" href="http://www.python.org/peps/pep-0308.html">http://www.python.org/peps/pep-0308.html</a>
But in 2.5?
<a class="moz-txt-link-freetext" href="http://www.python.org/dev/doc/devel/whatsnew/whatsnew25.html">http://www.python.org/dev/doc/devel/whatsnew/whatsnew25.html</a>
Thank you,
Alan Isaac
</pre>
</blockquote>
It's true that Andrew Kuchling doesn't list it in his What's New.<br>
<br>
I was quoting Guido van Rossum. Please see below.<br>
<br>
My purpose in mentioning PEP 308 was to illustrate that there can be
second thoughts and to support the idea that there should be second
thoughts with respect to PEP 204.<br>
<pre wrap="">see <a class="moz-txt-link-freetext"
href="http://www.python.org/peps/pep-0204.html">http://www.python.org/peps/pep-0204.html</a></pre>
Colin W.<br>
<br>
<h1>[Python-Dev] Conditional Expression Resolution</h1>
<b>Guido van Rossum</b> <a
href="mailto:python-dev%40python.org?Subject=%5BPython-Dev%5D%20Conditional%20Expression%20Resolution&In-Reply-To="
title="[Python-Dev] Conditional Expression Resolution">guido at
python.org </a><br>
<i>Fri Sep 30 03:21:53 CEST 2005</i>
<ul>
<li>Previous message: <a
href="http://mail.python.org/pipermail/python-dev/2005-September/056853.html">[Python-Dev]
[PATCH][BUG] Segmentation Fault in xml.dom.minidom.parse
</a></li>
<li>Next message: <a
href="http://mail.python.org/pipermail/python-dev/2005-September/056847.html">[Python-Dev]
Conditional Expression Resolution
</a></li>
<li> <b>Messages sorted by:</b> <a
href="http://mail.python.org/pipermail/python-dev/2005-September/date.html#56846">[
date ]</a> <a
href="http://mail.python.org/pipermail/python-dev/2005-September/thread.html#56846">[
thread ]</a> <a
href="http://mail.python.org/pipermail/python-dev/2005-September/subject.html#56846">[
subject ]</a> <a
href="http://mail.python.org/pipermail/python-dev/2005-September/author.html#56846">[
author ]</a> </li>
</ul>
<hr><!--beginarticle-->
<pre>After a long discussion I've decided to add a shortcut conditional
expression to Python 2.5.
The syntax will be ...
A if C else B</pre>
<br>
</body>
</html>
|