Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion peps/pep-0008.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,17 @@ Imports
2. Related third party imports.
3. Local application/library specific imports.

You should put a blank line between each group of imports.
You should put a blank line between each group of imports:

.. code-block::
:class: good

import os
import sys

import mypkg.sibling
from mypkg import sibling
from mypkg.sibling import example

- Absolute imports are recommended, as they are usually more readable
and tend to be better behaved (or at least give better error
Expand Down