dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Bug: Wave Python API does not support binary representations of integers #749

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Wave produces a syntax error whenever the binary representation of an
integer is used in a Python robot's code.  For example, this line would
yield the following error:

last4bits = 849568737 & 0b1111

<type 'exceptions.SyntaxError'>: invalid syntax

This issue can be circumvented by the developer by using other means of
representing a binary number, such as int('1111', 2).  I don't know what
internal workings make this particular portion of the Python language not
work, but developers should be notified of this limitation if it cannot be
fixed.

Original issue reported on code.google.com by mike...@gmail.com on 28 Apr 2010 at 9:22

GoogleCodeExporter commented 9 years ago
That syntax only works in Python 2.6, while App Engine runs version 2.5 on the 
server:

http://code.google.com/appengine/docs/python/runtime.html#Pure_Python

What might be confusing is that the SDK will run on 2.6, but it is
best to run the same version as the App Engine servers to avoid 
surprises like this one.

Original comment by joe.gregorio@gmail.com on 7 May 2010 at 12:21