heapreplace, methodcaller

Raymond Hettinger python at rcn.com
Sat Oct 18 23:43:24 EDT 2008


On Oct 18, 7:01 am, bearophileH... at lycos.com wrote:
> To improve name coherence I think this method of the heapq module:
> heapq.heapreplace(heap, item)
>
> can grow an alias in Python 2.6.1/2.7 and 3.0/3.1:
> heapq.heappoppush(heap, item)
>
> So later the heapreplace() name can be deprecated.

Too late for 2.6 and possibly too late and too disruptive for 3.0
(which needs to minimize transitions from 2.6).


Raymond



More information about the Python-list mailing list