[issue1619060] bisect on presorted list

Raymond Hettinger report at bugs.python.org
Mon Mar 24 09:31:05 CET 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Thanks for the thoughtful reply.  Am going to close for the reasons 
agreed by most of the respondants.  See additional explanation in the 
closing of issue 1451588 .

That all-at-once action of sort() allows it to take advantage of a 
single key-function call per element; in contrast, successive calls to 
bisect functions are more finely grained and the key-function doesn't 
make sense anymore.

----------
resolution:  -> rejected
status: open -> closed

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1619060>
_____________________________________


More information about the Python-bugs-list mailing list