[Python-porting] Function annotation syntax for 2.7/3.5 compatibility and pasteurize

Michael Rans mcarans at yahoo.co.uk
Thu Dec 15 10:45:40 EST 2016


Hi,
Which is the correct way of doing function annotations that work in 2.7 and 3.5?https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-codeor
http://python-future.org/func_annotations.html#func-annotations
?
I have a feature request for pasteurize from Python Future - that it automatically convert Python 3.5 style function annotations to whatever is the correct format for 2.7. Is that possible?
Thanks for all the good work!
Cheers,Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20161215/3b8dd20a/attachment.html>


More information about the Python-porting mailing list