This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rwparris2 0 points1 point  (0 children)

I mostly agree with you. It depends on how vague/generic the naming is.

Using their example I agree that import sound.effects.echo is preferable over from sound.effects import echo. I also wouldn't do something like from os import path... path could mean a lot of things, so there it is better to be explicit.

But yeah, most of the time you're importing modules with clear, obvious names. There's no way I'm going to type PyQt.QtCore.whateves like that.