Updated __builtns__
This commit is contained in:
parent
9126d0a5ec
commit
61901f5c28
|
@ -1,6 +1,13 @@
|
||||||
|
import builtins
|
||||||
|
|
||||||
class Builtins:
|
class Builtins:
|
||||||
def hello_world():
|
def hello_world():
|
||||||
print("Hello, world!")
|
print("Hello, world!")
|
||||||
|
|
||||||
|
def hello_user():
|
||||||
|
print("Hello, user!")
|
||||||
|
|
||||||
|
|
||||||
|
# NOTE: There areto ways to add global items. like so.
|
||||||
|
builtins.hello_user = hello_user
|
||||||
__builtins__.update({"hello_world": hello_world})
|
__builtins__.update({"hello_world": hello_world})
|
||||||
|
|
Loading…
Reference in New Issue