I just found out about a new feature in python that allows you to do function annotations like below:

   def greet(name: str, age: int) -> str:
        print('Hello {0}, you are {1} years old'.format(name, age))


See this link for a more detailed description:
http://ceronman.com/2013/03/12/a-powerful-unused-feature-of-python-function-annotations/

Are there any plans to incorporate this feature into rpython?

I presume this would make the static analysis in rpython significantly easier, and would speed up the compilation process?

Dzhelil
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to