Trees

Nick Coghlan ncoghlan at iinet.net.au
Sat Feb 26 00:05:59 EST 2005


Diez B. Roggisch wrote:
> Or writing a Node-class is also so straightforward that few care about them
> being part of the core:

Writing a *simple* node class is easy, but a full-featured one that supports 
things like comparison and easy iteration is a bit more work. So various people 
write partial implementations with only the features they need, and they all end 
up being incompatible. So beyond being able to use it, the other thing is that 
having an implementation in the standard library acts as a de facto interface 
standard, making it easier to write common code to operate on tree structures.

All it would take to make it happen is a PEP, an implementation and a champion 
with some persuasive ability :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list