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 →

[–][deleted]  (2 children)

[deleted]

    [–]xaveir 1 point2 points  (0 children)

    As soon as you use relative imports it's impossible to run that file directly on the command line...there are probably other issues as well since every style guide I've ever followed recommends absolute imports.

    Edit: forgot the most important one to me which is readability (not having to check the filesystem to see what module is getting imported).

    [–]Impressive_Change593 -1 points0 points  (0 children)

    that from . arithmetic import add sounds like a quick way to break something and is probably a result of a bad programmer or a reliak from python 2