From: Guido van Rossum Date: Mon, 19 Oct 1998 18:42:53 +0000 (+0000) Subject: Rename 'locals' argument to top-level interact() function to 'local' X-Git-Tag: v1.5.2b1~308 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d90ae19b92b6172f5b1aceb34c5c18ca28144ca7;p=thirdparty%2FPython%2Fcpython.git Rename 'locals' argument to top-level interact() function to 'local' for b/w compatibility with 1.5.1. --- diff --git a/Lib/code.py b/Lib/code.py index 3554b35de979..94e7777dc94f 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -340,7 +340,7 @@ class InteractiveConsole(InteractiveInterpreter): return raw_input(prompt) -def interact(banner=None, readfunc=None, locals=None): +def interact(banner=None, readfunc=None, local=None): """Closely emulate the interactive Python interpreter. This is a backwards compatible interface to the InteractiveConsole @@ -351,10 +351,10 @@ def interact(banner=None, readfunc=None, locals=None): banner -- passed to InteractiveConsole.interact() readfunc -- if not None, replaces InteractiveConsole.raw_input() - locals -- passed to InteractiveInterpreter.__init__() + local -- passed to InteractiveInterpreter.__init__() """ - console = InteractiveConsole(locals) + console = InteractiveConsole(local) if readfunc is not None: console.raw_input = readfunc else: