Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92188
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: [RELEASED] Python 3.5.0b2 is now available |
| Date | 2015-06-06 16:37 -0400 |
| References | <556BE1A7.1090101@hastings.org> <556C469A.2070806@mrabarnett.plus.com> <mkih15$rtr$1@ger.gmane.org> <556CDC7A.6070302@mrabarnett.plus.com> <CAB1GNpRYAPbrO5poQws-5ar25y8QaGdjW_-_z9HNoUEVqCTxuw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.219.1433623098.13271.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [RELEASED] Python 3.5.0b2 is now available Terry Reedy <tjreedy@udel.edu> - 2015-06-06 16:37 -0400
csiph-web