Mercurial > cpython-lru_cache-weakref
diff Lib/code.py @ 9405:3886165dba42 legacy-trunk
Rename 'locals' argument to top-level interact() function to 'local'
for b/w compatibility with 1.5.1.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 19 Oct 1998 18:42:53 +0000 |
| parents | 0329d419e506 |
| children | 913eb31b0317 |
line wrap: on
line diff
--- a/Lib/code.py Mon Oct 19 16:33:06 1998 +0000 +++ b/Lib/code.py Mon Oct 19 18:42:53 1998 +0000 @@ -340,7 +340,7 @@ 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 @@ 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:
