[RELEASED] Python 3.5.0b2 is now available
Terry Reedy
tjreedy at udel.edu
Sat Jun 6 16:37:32 EDT 2015
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
More information about the Python-list
mailing list