Closed Saturn closed 8 years ago
Do you mean like
from soccer import leagueids, teammates
or
from soccer.writers import get_writer
I see the leading dot style a lot so I just did that. I don't think that style is totally discouraged but there is possibly situations when the absolute import is necessary.
i see those alot too but apparently its in the PEP8 too where absolute imports are preferred: http://stackoverflow.com/questions/4209641/absolute-vs-explicit-relative-import-of-python-module/4209771#4209771
Seems like not everyone likes them but now that the syntax is more standardised a lot of projects do the relative import.
So if it is a matter of style your preference is for absolute imports?
that is my preference but not a necessity...its more important we follow a consistent format :)
That is true.
@architv can pick a style he prefers.
@Saturn @ueg1990 I think we should stick with absolute imports since that's the format followed in the package.
@Saturn Let me know if there is any other issue or we can close the PR.
Changed to use absolute imports. It seems to work for me.
Bad idea to use the old relative imports since if you have a duplicate name somewhere in your module path it might try and import the wrong module causing an error.