Author: Armin Rigo <[email protected]> Branch: Changeset: r76632:116b2b19f065 Date: 2015-03-30 12:54 +0200 http://bitbucket.org/pypy/pypy/changeset/116b2b19f065/
Log: Attempt a better explanation diff --git a/rpython/doc/rpython.rst b/rpython/doc/rpython.rst --- a/rpython/doc/rpython.rst +++ b/rpython/doc/rpython.rst @@ -59,7 +59,7 @@ **exceptions** - fully supported + fully supported. see below `Exception rules`_ for restrictions on exceptions raised by built-in operations @@ -136,9 +136,16 @@ **functions** -+ statically called functions may use defaults and a variable number of - arguments (which may be passed as a list instead of a tuple, so write code - that does not depend on it being a tuple). ++ function declarations may use defaults and ``*args``, but not + ``**keywords``. + ++ function calls may be done to a known function or to a variable one, + or to a method. You can call with positional and keyword arguments, + and you can pass a ``*args`` argument (it must be a tuple). + ++ as explained above, tuples are not of a variable length. If you need + to call a function with a variable number of arguments, refactor the + function itself to accept a single argument which is a regular list. + dynamic dispatch enforces the use of signatures that are equal for all possible called function, or at least "compatible enough". This _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
