mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.14] gh-132775: Expand the Capability of Interpreter.call() (gh-134933)
It now supports most callables, full args, and return values.
(cherry picked from commit 52deabe, AKA gh-133484)
Co-authored-by: Eric Snow ericsnowcurrently@gmail.com
This commit is contained in:
parent
69536093de
commit
d45d053267
11 changed files with 32773 additions and 31776 deletions
|
|
@ -1356,10 +1356,10 @@ _queueobj_from_xid(_PyXIData_t *data)
|
|||
|
||||
PyObject *mod = _get_current_module();
|
||||
if (mod == NULL) {
|
||||
// XXX import it?
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
MODULE_NAME_STR " module not imported yet");
|
||||
return NULL;
|
||||
mod = PyImport_ImportModule(MODULE_NAME_STR);
|
||||
if (mod == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
PyTypeObject *cls = get_external_queue_type(mod);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue