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 terry.reedy
Recipients methane, rhettinger, serhiy.storchaka, terry.reedy
Date 2017-09-29.22:40:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
An option for deferred imports would be to leave a comment at the top where the import would otherwise be.  Example:

# import types, weakref  # Deferred to single_dispatch()

This accomplishes the PEP8 purpose of making all dependencies of the module visible at the top.
Date User Action Args
2017-09-29 22:40:18terry.reedysetrecipients: + terry.reedy, rhettinger, methane, serhiy.storchaka
2017-09-29 22:40:18terry.reedysetmessageid: <>
2017-09-29 22:40:18terry.reedylinkissue31581 messages
2017-09-29 22:40:18terry.reedycreate