+ 2

Quiz Time[Python]

How would you manage to exit from this in Python Console?(no quitting from the terminal): >>del __builtins__ >>

9th Apr 2017, 6:46 PM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
6 Réponses
+ 2
__builtins__ is the module you use print(), import, and so on
10th Apr 2017, 10:36 AM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 2
@Amaras A try it on console
11th Apr 2017, 10:22 AM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 2
@Amaras A try to make a func maybe? ;)
15th Apr 2017, 8:59 AM
Ali Emir Kızıl
Ali Emir Kızıl - avatar
+ 1
right, I was doing that in the IDLE shell, which prevents you from doing that.
11th Apr 2017, 11:09 AM
Amaras A
Amaras A - avatar
+ 1
and you can't quit from inside the terminal... I think the best option is to reimplement everything
11th Apr 2017, 11:11 AM
Amaras A
Amaras A - avatar
0
you can't delete __builtins__ actually
10th Apr 2017, 12:32 PM
Amaras A
Amaras A - avatar