[Patches] [ python-Patches-471421 ] conditional expression (if-then-else)

noreply@sourceforge.net noreply@sourceforge.net
Mon, 15 Oct 2001 12:00:09 -0700


Patches item #471421, was opened at 2001-10-15 11:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=471421&group_id=5470

Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Guido van Rossum (gvanrossum)
Summary: conditional expression (if-then-else)

Initial Comment:
Here's an implementation of conditional expressions of
the form

    if <test> then <test> else <test>

It's hairier than expected because I'm trying to
require you to put parentheses around it in some cases
but not in others.

This still lacking:

- a PEP to motivate and explain it
- documentation
- tests
- needed changes to Modules/parsermodule.c

After applying this patch, you must regenerate the
grammar; the Unix Makefile and the current CVS version
of the Windows project file do this automatically.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=471421&group_id=5470