Skip to content
Merged
Prev Previous commit
Next Next commit
Fix the docstring.
  • Loading branch information
ericsnowcurrently committed Oct 4, 2023
commit 0c443ad0575798c31d75bd6a3ff5bb4a95bf848c
4 changes: 2 additions & 2 deletions Modules/_xxsubinterpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ interp_exec(PyObject *self, PyObject *args, PyObject *kwds)
}

PyDoc_STRVAR(exec_doc,
"exec(id, code, shared)\n\
"exec(id, code, shared=None)\n\
\n\
Execute the provided code in the identified interpreter.\n\
This is equivalent to running the builtin exec() under the target\n\
Expand All @@ -838,7 +838,7 @@ globals and locals.\n\
\n\
Functions (and code objects) are also supported, with some restrictions.\n\
The code/function must not take any arguments or be a closure\n\
(i.e. have cell vars).\n\
(i.e. have cell vars). Methods and other callables are not supported.\n\
\n\
If a function is provided, its code object is used and all its state\n\
is ignored, including its __globals__ dict.");
Expand Down