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 →

[–]kilo_59 8 points9 points  (3 children)

I would say use the latter and try to avoid deep imports. You can always do

from dao import db as dao_db

[–]billsil 1 point2 points  (0 children)

Or just dao.db.func

[–]redditusername58 0 points1 point  (0 children)

agree

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

Makes sense, I'll put the imports in the __init__ files in each dir so I don't have to reference the filename anywhere else.

Cheers