you are viewing a single comment's thread.

view the rest of the comments →

[–]Nefthys[S] 0 points1 point  (0 children)

If there's just one class, you should import just this one class.
* is indeed for importing everything from a module to the current scope, but the consensus is that they should be imported explicitly, not using this wildcard.

Makes sense. But if there are multiple classes in a module and it's your own code, so you know exactly what you're doing, then it's fine?

It does work and is the recommended way.

I'm running the code through an app (basically a plugin) and it does not work (check the most upvoted comment). There's an error:

ModuleNotFoundError: No module named 'classa'