[New-bugs-announce] [issue16438] Numeric operator predecence confusing
Yongzhi Pan
report at bugs.python.org
Thu Nov 8 15:19:31 CET 2012
New submission from Yongzhi Pan:
http://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex
"All numeric types (except complex) support the following operations, sorted by ascending priority."
It list '-' after '+', '/' after '*'. That is to mean '-' has higher precedence than '+'. That is wrong, and is contradicting with here:
http://docs.python.org/3/reference/expressions.html#summary
This should be made clear.
----------
assignee: docs at python
components: Documentation
messages: 175163
nosy: docs at python, fossilet
priority: normal
severity: normal
status: open
title: Numeric operator predecence confusing
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16438>
_______________________________________
More information about the New-bugs-announce
mailing list