Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-27 07:20:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-27 07:21:03 +0400
commit81b64e506f26de58ffaff5b61a92179ae8015aec (patch)
tree97806ef5539845056fbf3df54439725c753adad4
parent40f79cf6e7b4d90380641ea704ab29ca0a4231cd (diff)
API Docs: use a simpler example for merging namespaces
-rw-r--r--doc/python_api/rst/info_tips_and_tricks.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/rst/info_tips_and_tricks.rst b/doc/python_api/rst/info_tips_and_tricks.rst
index 75e8ef61f6f..793259401b8 100644
--- a/doc/python_api/rst/info_tips_and_tricks.rst
+++ b/doc/python_api/rst/info_tips_and_tricks.rst
@@ -214,7 +214,7 @@ The next example is an equivalent single line version of the script above which
.. code-block:: python
- __import__('code').interact(local={k: v for ns in (globals(), locals()) for k, v in ns.items()})
+ __import__('code').interact(local=dict(globals(), **locals()))
``code.interact`` can be added at any line in the script and will pause the script an launch an interactive interpreter in the terminal, when you're done you can quit the interpreter and the script will continue execution.