[Python-bugs-list] [ python-Bugs-471202 ] bit shift operator << precedence

noreply@sourceforge.net noreply@sourceforge.net
Sun, 14 Oct 2001 21:01:43 -0700


Bugs item #471202, was opened at 2001-10-14 21:01
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=471202&group_id=5470

Category: Parser/Compiler
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: bit shift operator << precedence

Initial Comment:
In 2.1.1, 
It appears bit shift operator << has lower precedence than operator +. Expression 1<<16 + 1 
results in 131072 rather than the expected 65537. User has to use (1<<16) +1 to get the 
expected result.



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=471202&group_id=5470