Raymond Hettinger added the comment:

Please stop rearranging everything in the standard library.  Every day I look 
at the tracker and there is a new patch from this dev that alters dozens of 
files.  

Some parts of the patch are harmless but other parts needlessly 
constipates the code for very little benefit.  I would be embarrassed to have 
to explain why core developers think it is a best practice to move a heapq 
import inside a Counter method.  That isn't a PEP-8 recommended practice.  
Ordinarily, we only recommend deferred imports in extreme cases where the 
resource might not be available at import time or when the import is *very* 
expensive.

In general, we've already committed too many sins in the name of optimizing 
start-up time.  Mostly, these are false improvements because many of the 
changes just defer imports that ultimately end-up being needed anyway.  As we 
make useful tools, we're going to want to use them in the standard library to 
make the code better, but that is going to entail greater inter-dependencies 
and cross-imports.  Trying to avoid these is a losing game.

----------
assignee:  -> bethard

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30152>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to