[Python-bugs-list] [Bug #125391] Associativity of exponentiation documented incorrectly

noreply@sourceforge.net noreply@sourceforge.net
Mon, 11 Dec 2000 13:43:26 -0800


Bug #125391, was updated on 2000-Dec-11 13:43
Here is a current snapshot of the bug.

Project: Python
Category: Documentation
Status: Open
Resolution: None
Bug Group: None
Priority: 6
Submitted by: tim_one
Assigned to : fdrake
Summary: Associativity of exponentiation documented incorrectly

Details: http://www.python.org/doc/current/ref/summary.html#l2h-332

says that exponentation (**) groups to the left.  This is incorrect:

>>> 2**2**3
256
>>>

That would have printed 64 (4**3) if ** were left-associative.  ** is right-associative in Python (as well as in all other languages <wink>).

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=125391&group_id=5470