Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Romain Casati
Basthon Kernel
Commits
d5ce1ecd
Commit
d5ce1ecd
authored
Feb 02, 2021
by
Romain Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exposing locals in kernel.
parent
696f81d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/basthon-py/basthon/kernel.py
src/basthon-py/basthon/kernel.py
+5
-0
No files found.
src/basthon-py/basthon/kernel.py
View file @
d5ce1ecd
...
...
@@ -26,6 +26,11 @@ importlib.invalidate_caches()
_console
=
InteractiveConsole
()
def
locals
():
""" Global evaluation namespace. """
return
_console
.
locals
def
display_event
(
data
):
""" Dispatching eval.display event with display data. """
display_data
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment