module imports and __init__.py in Python

前端 未结 5 513
执念已碎
执念已碎 2020-12-02 15:49

I am trying to understand what the best practices are with regards to Python\'s (v2.7) import mechanics. I have a project that has started to grow a bit and lets say my code

5条回答
  •  既然无缘
    2020-12-02 16:06

    You can refer to the 'Style Guide for Python Code' for best practices, the import is kept in the class in that guide.

    https://www.python.org/dev/peps/pep-0008/#imports

提交回复
热议问题