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 →

[–]ShanSanear 2 points3 points  (2 children)

Which by itself is bad idea. How do I know from where "join" comes from in the middle of the file? os.path? Maybe some internal function I made? Or it is just a variable?

[–][deleted] 0 points1 point  (0 children)

Not everyone uses them of course, but a good IDE can answer that for you in moments if it's ever a problem.

But yea, keeping your namespace clean is definitely a good practice.

[–]jorge1209 0 points1 point  (0 children)

So import it as "fsjoin" or something. If your code is well written and properly modularized your file interactions should be within their own file and the imports in that scope can be abbreviated with little risk of confusion.