3 ms·
But isn't something like from tk import * essentially equivalent to my C++ example? They're bad practices in both languages. Thankfully python examples seem
by zrobotics 7y ago
But isn't something like
from tk import *
essentially equivalent to my C++ example? They're bad practices in both languages. Thankfully python examples seem to be better in this regard, since I don't recall seeing wildcard imports in any of the tutorials or references I've used.
- rcfox 7y agoYes, and it does make code more difficult to read. I've looked at a fair amount of Python code, and it is very rare to see import * in the wild. On the other hand, import * is nice to have in a repl.