← 输入框|bugs.python.org|刷新

➜

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.

作者 terry.reedy
收信人 methane, rhettinger, serhiy.storchaka, terry.reedy
日期 2017-09-29.22:40:18
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1506724818.28.0.213398074469.issue31581@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2017-09-29 22:40:18terry.reedy修改recipients: + terry.reedy, rhettinger, methane, serhiy.storchaka
2017-09-29 22:40:18terry.reedy修改messageid: <1506724818.28.0.213398074469.issue31581@psf.upfronthosting.co.za>
2017-09-29 22:40:18terry.reedy链接issue31581 messages
2017-09-29 22:40:18terry.reedy创建