Summer reading list
Andrew Dalke
adalke at mindspring.com
Tue Aug 12 20:00:25 EDT 2003
Joe Cheng:
> It might just be my Java background creeping in (I'm a Python newbie),
but,
> wouldn't it be better if this was OO?
Here's perhaps the definitive statement on the topic, from Tim Peters:
http://aspn.activestate.com/ASPN/Mail/Message/python-dev/1620162
Summary: heapq is a concrete interface, not an abstract one. It doesn't
try to encompass the different ways to do heaps. It's like bisect in that
it works on an existing data type.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list