[issue31581] Reduce the number of imports for functools
Terry J. Reedy
report at bugs.python.org
Fri Sep 29 18:40:18 EDT 2017
Terry J. Reedy <tjreedy at udel.edu> added the comment:
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.
----------
nosy: +terry.reedy
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31581>
_______________________________________
More information about the Python-bugs-list
mailing list