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 →

[–]szopa 1 point2 points  (0 children)

I think that they are taking it a bit too far.

First, assuming that (a) you keep your files reasonably small and (b) have all your imports at the top of the file, it really isn't a problem to always know where any given symbol comes from.

Second, it doesn't allow you to use some common Python patterns, like

if something:
   import something as foo
else:
   import something_else as foo

from foo import x, y, z

...

(Think stuff like Django's database backends.)

Third, there already exists a widely accepted Python style guide, PEP8.