On Wed, 4 Jul 2018 at 22:07 Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > Shawn Chen wrote: > > The PEP 484 is proposing a type hint which can annotate the type of each > > parameters. How ever code written in this format can not be run for > > python3.5 and below. > > You're a bit late. Parameter annotations have been a part > of the language since at least 3.1. PEP 484 just codifies > a way of using them to represent types. > > Also, PEP 484 does specify a way of using comments to > indicate types. > Actually it does in https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code and https://www.python.org/dev/peps/pep-0484/#type-comments. So the OP's desire to specify in a comment is already specified. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180706/a8bad98e/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4