Message287411
| Author |
vstinner |
| Recipients |
methane, python-dev, vstinner |
| Date |
2017年02月09日.12:21:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1486642907.05.0.794822027799.issue29306@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
check_recursion_depth.py: script using Python functions and C function (functools.partial) to check the recursion depth.
Example with Python 3.6:
haypo@selma$ ./python check_recursion_depth.py # unpatched
got: 148, expected: 100
haypo@selma$ ./python check_recursion_depth.py # patched
got: 100, expected: 100
Maybe we need "proxies" in _testcapi for each kind of function, a function taking a callback and calling this function. Function types:
* C function, METH_NOARGS
* C function, METH_O
* C function, METH_VARRGS
* C function, METH_VARRGS | METH_KEYWORDS
* C function, METH_FASTCALL
* Python function
* Maybe even most common C functions to call functions: PyObject_Call(), _PyObject_FastCallDict(), _PyObject_FastCallKeywords(), etc. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年02月09日 12:21:47 | vstinner | set | recipients:
+ vstinner, methane, python-dev |
| 2017年02月09日 12:21:47 | vstinner | set | messageid: <1486642907.05.0.794822027799.issue29306@psf.upfronthosting.co.za> |
| 2017年02月09日 12:21:47 | vstinner | link | issue29306 messages |
| 2017年02月09日 12:21:46 | vstinner | create |
|