[issue5310] operator precedence table is wrong

Gabriel Genellina report at bugs.python.org
Thu Feb 19 04:51:08 CET 2009


New submission from Gabriel Genellina <gagsl-py2 at yahoo.com.ar>:

The operator precedence table is wrong.
<http://docs.python.org/reference/
expressions.html#summary>
shows "in"/"not in" having less priority than 
comparisons like "==", but that's not true:

py> 2 in (1,2) == True
False

The .rst file is wrong, as well as all the 
generated .html files since version 2.1 at least.
But the original Latex source lists them in the 
same group.

Looks like the latex->html and latex->rst tools 
both had the same problem with this kind of 
table construct.

The attached patch is based on the ref5.tex file 
included in Python 2.5

----------
assignee: georg.brandl
components: Documentation
messages: 82451
nosy: gagenellina, georg.brandl
severity: normal
status: open
title: operator precedence table is wrong
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5310>
_______________________________________


More information about the Python-bugs-list mailing list