From: Benjamin Peterson Date: Sun, 4 Jan 2009 15:30:39 +0000 (+0000) Subject: #4826 exec() doesn't take a file object anymore X-Git-Tag: v3.1a1~577 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3809026a72472593a43038315eb597bedb6403e7;p=python #4826 exec() doesn't take a file object anymore --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 546bc20c00..c3fefb91cb 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -820,8 +820,8 @@ builtin_exec(PyObject *self, PyObject *args) PyDoc_STRVAR(exec_doc, "exec(object[, globals[, locals]])\n\ \n\ -Read and execute code from a object, which can be a string, a code\n\ -object or a file object.\n\ +Read and execute code from a object, which can be a string or a code\n\ +object.\n\ The globals and locals are dictionaries, defaulting to the current\n\ globals and locals. If only globals is given, locals defaults to it.");