Author: Ronan Lamy <[email protected]>
Branch: api_func-refactor
Changeset: r89406:a004964c95d4
Date: 2017-01-06 17:54 +0000
http://bitbucket.org/pypy/pypy/changeset/a004964c95d4/
Log: Don't store 'api_function' on the hidden 'func', it's already on
'unwrapper'; kill dead code
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
@@ -411,11 +411,6 @@
c_name=c_name, gil=gil,
result_borrowed=result_borrowed,
result_is_ll=result_is_ll)
- func.api_func = api_function
-
- if error is _NOT_SPECIFIED:
- raise ValueError("function %s has no return value for exceptions"
- % func)
names = api_function.argnames
types_names_enum_ui = unrolling_iterable(enumerate(
zip(api_function.argtypes,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit