[docs] bug in https://docs.python.org/3.4/reference/expressions.html#grammar-token-expression_nocond ?
Alexander Heger
python at 2sn.net
Mon Apr 6 13:20:13 CEST 2015
In "6.11. Conditional expressions" the first line reads:
"""
conditional_expression ::= or_test ["if" or_test "else" expression]
"""
I think this should be
"""
conditional_expression ::= expression ["if" or_test "else" expression]
"""
and maybe the third line,
"""
expression_nocond ::= or_test | lambda_expr_nocond
"""
should also replace "or_test" by somethings else? A truly
conditionless expression or something in parentheses if containing a
condition?
-Alexander
More information about the docs
mailing list