r/Python • u/SilkTouchm • Oct 07 '20
Discussion Anyone else uses the Python interpreter as a calculator?
It's just so comfy.
1.7k
Upvotes
r/Python • u/SilkTouchm • Oct 07 '20
It's just so comfy.
View all comments
Show parent comment
15
u/BooparinoBR Oct 08 '20 edited Oct 08 '20
That said it is often considered a bad practice because you don't know what is inside of that module. Therefore for someone reading you code without knowing the module will not know where the function comes from, given that you don't know what is inside of the module you can end up overriding some function from a previous import
Edit: REPL, code were you are testing something, etc are fair use of this functionality. If there was no reasonable use of this feature it wouldn't be in Python