Message273170
| Author |
vstinner |
| Recipients |
serhiy.storchaka, vstinner |
| Date |
2016年08月20日.00:21:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1471652485.87.0.888349728997.issue27809@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
_PyObject_FastCall() (added in the issue #27128) already supports keyword arguments for C functions, but not Python functions.
Attached patch adds support for keyword arguments in _PyFunction_FastCall(), to allow to use _PyObject_FastCall() in more cases.
Examples of functions that can be modified to _PyObject_FastCall() with this change:
* builtin_sorted()
* builtin___build_class__()
* init_subclass()
* PyEval_CallObjectWithKeywords(func, NULL, kwargs)
* methoddescr_call(), classmethoddescr_call(), wrapperdescr_call()
* PyFile_GetLine()
Moreover, supporting keywords is required for another more important step: add a new METH_CALL calling convention for C functions. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年08月20日 00:21:26 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
| 2016年08月20日 00:21:25 | vstinner | set | messageid: <1471652485.87.0.888349728997.issue27809@psf.upfronthosting.co.za> |
| 2016年08月20日 00:21:25 | vstinner | link | issue27809 messages |
| 2016年08月20日 00:21:24 | vstinner | create |
|