2021-10-11 04:33:58 +00:00
|
|
|
import builtins
|
|
|
|
|
2021-10-11 04:28:19 +00:00
|
|
|
class Builtins:
|
|
|
|
def hello_world():
|
|
|
|
print("Hello, world!")
|
|
|
|
|
2021-10-11 04:33:58 +00:00
|
|
|
def hello_user():
|
|
|
|
print("Hello, user!")
|
|
|
|
|
2021-10-11 04:28:19 +00:00
|
|
|
|
2021-10-11 04:36:39 +00:00
|
|
|
# NOTE: There are two ways to add global items.
|
2021-10-11 04:33:58 +00:00
|
|
|
builtins.hello_user = hello_user
|
2021-10-11 04:28:19 +00:00
|
|
|
__builtins__.update({"hello_world": hello_world})
|