[pypy-dev] python annotations

Maciej Fijalkowski fijall at gmail.com
Thu Mar 14 22:49:51 CET 2013


On Thu, Mar 14, 2013 at 2:18 PM, Dzhelil Rufat <dzhelil at gmail.com> wrote:
> 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
> pypy-dev at python.org
> http://mail.python.org/mailman/listinfo/pypy-dev
>

There are various plans about enforcing types more strictly in
RPython. Using *this* precise syntax is one of the options, but this
is not the problem. The problem is making expressive enough object
model. Also, putting work into that.


More information about the pypy-dev mailing list