bpython version 0.19 on top of Python 3.7.5 /home/nab/Projects/3.7/bin/python
>>> globals()['builtins']['kek'] = 1
>>>
tishka17@tishka17-Mi-Laptop-Pro-15 ~/src/tmp $ cat q.py
def func():
print(kek)
tishka17@tishka17-Mi-Laptop-Pro-15 ~/src/tmp $ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> __builtins__.kek = "hello"
>>> import q
>>> q.func()
hello
но все ещё лучше не делать так. А ты ещё усложнил пипец
Tishka17
Anonymous
Oleg
Artem
decorator-factory
Okula🦈
Denis
âDêšwu öBipci