programming unlimited "categories" in python ?

Stephen shriek at gmx.co.uk
Wed Oct 24 05:31:23 CEST 2001


> > Thank you for the advice, Terry.  Sorry if I'm being obstinate,
> > but I think the problem is a little less simplistic than it first
> > appears. Let's look at the everyday addressbook in Act! or 
> > Outlook ? How would you create unlimited levels of categorisation 
> > and unlimited numbers of subcategories ?
> 
> I haven't been reading this completely, but this sounds an awful lot
> like what yahoo does...

Yes.

> I have an object called Node that does this.
> 
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/zike/zikebase/Node.py?rev=1.14&content-type=text/vnd.viewcvs-markup
> 
> probably needs a cleanup, but that's the general idea.

Yes, though the real problem presents itself in storing the 
node tree structure. And the "sets" solution is perfect for that.

Stephen.



More information about the Python-list mailing list