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 <1506724818.28.0.213398074469.issue31581@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-29 22:40:18terry.reedysetrecipients: + terry.reedy, rhettinger, methane, serhiy.storchaka
2017-09-29 22:40:18terry.reedysetmessageid: <1506724818.28.0.213398074469.issue31581@psf.upfronthosting.co.za>
2017-09-29 22:40:18terry.reedylinkissue31581 messages
2017-09-29 22:40:18terry.reedycreate