Re: [Tutor] tagging pieces of information

2007-08-29 Thread Gonzillaaa
Have a look at Tasty last time I checked it was postgres centric, it might have changed now. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] tagging pieces of information

2007-08-29 Thread Che M
> > Hi, I am curious about ways in Python to approach the idea of "tagging" > > pieces of information much in the way that one can tag favorite websites > > like on the site Del.icio.us. I'm not sure if tagging is the best term >for > > this (due to confusion with HTML tags), but the idea would

Re: [Tutor] tagging pieces of information

2007-08-27 Thread Ian Witham
You may be able to use a dictionary to store your data chunks. eg: >>> tagged_items = {('spam, swordfights'): 'ITEM A', ... ('swordfights', 'custard'): 'ITEM B'} >>> [tagged_items[tags] for tags in tagged_items if 'spam' in tags] ['ITEM A'] >>> [tagged_items[tags] for tags in tagged_items if '

Re: [Tutor] tagging pieces of information

2007-08-27 Thread John Fouhy
On 28/08/07, Che M <[EMAIL PROTECTED]> wrote: > Hi, I am curious about ways in Python to approach the idea of "tagging" > pieces of information much in the way that one can tag favorite websites > like on the site Del.icio.us. I'm not sure if tagging is the best term for > this (due to confusion w

Re: [Tutor] tagging pieces of information

2007-08-27 Thread Eric Abrahamsen
On Aug 28, 2007, at 11:07 AM, Che M wrote: > I don't know if there are any preexisting Python structures which > would help > with this or if it has to be done by scratch, or if it is easy or > difficult. > I also don't know what are good ideas for ways to save the tags, > whether > in a t

[Tutor] tagging pieces of information

2007-08-27 Thread Che M
Hi, I am curious about ways in Python to approach the idea of "tagging" pieces of information much in the way that one can tag favorite websites like on the site Del.icio.us. I'm not sure if tagging is the best term for this (due to confusion with HTML tags), but the idea would be a way to ass