0

I'm aware of this convention to keep each import on its own line but from technical standpoint is there any difference between:

import sys, os

or

import sys
import os

Personally, I have no problem to keep both on one line unless there's really good reason not to do so.

If this topic gets closed for being opinionated I'll take it as there's no valid reason for giving imports its own line.

Does Python treats the imports differently in any circumstances ?

mr_incredible
  • 837
  • 2
  • 8
  • 21
  • 2
    Does this answer your question? [Python Module Import: Single-line vs Multi-line](https://stackoverflow.com/questions/15011367/python-module-import-single-line-vs-multi-line) – Joshua Nixon Jun 06 '20 at 15:01
  • 1
    Maybe this answers your question - https://stackoverflow.com/questions/15011367/python-module-import-single-line-vs-multi-line – dewDevil Jun 06 '20 at 15:01
  • It does. Thank you. Technically speaking no difference at all. – mr_incredible Jun 06 '20 at 15:03

0 Answers0