Author: Ronan Lamy <ronan.l...@gmail.com> Branch: cpyext-nowrapper Changeset: r92611:433e01a0e7fc Date: 2017-10-05 16:23 +0200 http://bitbucket.org/pypy/pypy/changeset/433e01a0e7fc/
Log: Remove obsolete description of the api object diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py --- a/pypy/module/cpyext/api.py +++ b/pypy/module/cpyext/api.py @@ -181,21 +181,20 @@ # The same function can be called in three different contexts: # (1) from C code -# (2) in the test suite, though the "api" object -# (3) from RPython code, for example in the implementation of another function. +# (2) from RPython code, for example in the implementation of another function +# or in tests. # -# In contexts (2) and (3), a function declaring a PyObject argument type will +# In context (2), a function declaring a PyObject argument type will # receive a wrapped pypy object if the parameter name starts with 'w_', a -# reference (= rffi pointer) otherwise; conversion is automatic. Context (2) -# only allows calls with a wrapped object. +# reference (= rffi pointer) otherwise; conversion is automatic. # # Functions with a PyObject return type should return a wrapped object. # -# Functions may raise exceptions. In context (3), the exception flows normally -# through the calling function. In context (1) and (2), the exception is +# Functions may raise exceptions. In context (2), the exception flows normally +# through the calling function. In context (1), the exception is # caught; if it is an OperationError, it is stored in the thread state; other -# exceptions generate a OperationError(w_SystemError); and the funtion returns -# the error value specifed in the API. +# exceptions generate a OperationError(w_SystemError); and the function returns +# the error value specified in the API. # # Handling of the GIL # ------------------- _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit