[Python-Dev] some minor questions about pep8

Barry Warsaw barry at python.org
Sat Mar 21 21:56:30 CET 2015


On Mar 20, 2015, at 09:59 PM, Ian Lee wrote:

>shebang
>docstring
>imports
>dunder assignments
>other code...

I generally put imports after dunders, except for __future__.  I want the
first screenful of code to contain them, and imports can be a few dozen lines
in some modules.

-Barry


More information about the Python-Dev mailing list