Multiple Python imports on one line
Eric S. Raymond
esr at thyrsus.com
Thu Jan 5 13:00:59 UTC 2017
Matt, devel/hacking.txt says:
Please read https://www.python.org/dev/peps/pep-0008/[PEP 8] and use
that style. The only PEP 8 style rule we relax is that you may
specify multiple module names in an import rather than going strictly
with one per line. The point is to encourage you to group your import
declarations in informative ways.
Therefor, you need not fix this one category of POP8 violation. If
you think you can rearrange imports to make groups of them more
coherent, go ahead and do that.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
The right to buy weapons is the right to be free.
-- A.E. Van Vogt, "The Weapon Shops Of Isher", ASF December 1942
More information about the devel
mailing list