This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon, eric.smith, plokmijnuhby
Date 2019-09-30.16:44:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
So it's a bit misleading to use the stdlib as a guideline because there are reasons we do this in certain spots. E.g. the os module purposefully does function-level imports to make startup cheaper. importlib does this to minimize how many modules need to be frozen into the interpreter.

But regardless of why, the PEP 8 guidance is still accurate as well as wholesale changes aren't allowed for stylistic reasons ("A Foolish Consistency is the Hobgoblin of Little Minds"). So while I appreciate the analysis and find it interesting, I'm closing this issue as there's nothing specific to do here.
Date User Action Args
2019-09-30 16:44:59brett.cannonsetrecipients: + brett.cannon, eric.smith, plokmijnuhby
2019-09-30 16:44:59brett.cannonsetmessageid: <>
2019-09-30 16:44:59brett.cannonlinkissue38297 messages
2019-09-30 16:44:59brett.cannoncreate