[issue33440] Possible lazy import opportunities in `pathlib`

Serhiy Storchaka report at bugs.python.org
Mon May 14 16:03:34 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Personally I support moving imports of rarely used modules into functions that need them. But this is against PEP 8 and should be discussed more widely. Perhaps this rule should be weaken, we have to state what exceptions are permitted.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33440>
_______________________________________


More information about the Python-bugs-list mailing list