Conditional expressions - PEP 308
Steven Bethard
steven.bethard at gmail.com
Wed Jan 31 11:25:04 EST 2007
Colin J. Williams wrote:
> It would be helpful if the rules of the game were spelled out more clearly.
>
> The conditional expression is defined as X if C else Y.
> We don't know the precedence of the "if" operator. From the little test
> below, it seem to have a lower precedence than "or".
>
> Thus, it is desirable for the user to put the conditional expression in
> parentheses.
Could you submit a documentation patch?
http://sourceforge.net/tracker/?group_id=5470&atid=105470
It doesn't need to be in LaTeX. Plain text is fine. Just indicate in
what document you think text should be added.
STeVe
More information about the Python-list
mailing list