diff --git a/peps/pep-0008.rst b/peps/pep-0008.rst index d14c9e97b12..f9768a6d1ba 100644 --- a/peps/pep-0008.rst +++ b/peps/pep-0008.rst @@ -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