Le 29/03/17 à 15:28, Ryan Gonzalez a écrit :
RPython already has this:


https://bitbucket.org/pypy/pypy/src/tip/rpython/rlib/signature.py

Indeed, @signature is one of 2 prior attempts at doing this in rpython[*]. However its syntax is cumbersome and it's rather limited in the types it can express - you can only use what's in rpython.rlib.types and these functions cannot be combined arbitrarily to build more complex types.

[*] The other one is @enforceargs: https://bitbucket.org/pypy/pypy/src/tip/rpython/rlib/objectmodel.py
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to