type hinting backward compatibility with python 3.0 to 3.4
Steve D'Aprano
steve+python at pearwood.info
Sat May 20 13:06:46 EDT 2017
On Sun, 21 May 2017 12:14 am, Gregory Ewing wrote:
> Steve D'Aprano wrote:
>> You mean treat them as syntactically comments?
>>
>> def function(arg:I can put ***ANYTHING*** I like here!!!):
>
> They could be parsed as expressions and stored as an AST.
> That would allow introspection, and you could evaluate them
> if you wanted
Ooh, that's a nice idea!
--
Steve
Emoji: a small, fuzzy, indistinct picture used to replace a clear and
perfectly comprehensible word.
More information about the Python-list
mailing list