On 6/6/2015 5:24 AM, Joonas Liik wrote:
Perhaps its just me, but it seems to me that this release is mighty
picky about annotations.

More specifically everything is fine in the interactive interpreter but
the same code won't fly when run as a file.

example:
def some_function(my_arg:"my random annotation")->"my random return type
annotation":
     pass

..will fail with a syntax error when run from a file.

On Win7, 3.5b2, this runs fine both from Idle editor and command line. Following on Steven's post, add
import sys; print(sys.version)
to top of file, as I did.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to