Re: [melbourne-pug] array matching

2010-04-29 Thread Terry Reedy
Anyone responding to this thread, please delete python-dev and gmane.comp.python.dev from the followup list of where your response is sent. It should never have been part of this overly cross-posted thread. -- http://mail.python.org/mailman/listinfo/python-list

RE: [melbourne-pug] array matching

2010-04-29 Thread Filip
You could use dictionary of lists test = { A: [1, 3], B: [2, 4] } print test[A] [1, 3] test[A].append(5) print test[A] [1, 3, 5] Cheers, Fil _ From: melbourne-pug-bounces+filipz=3g.nec.com...@python.org [mailto:melbourne-pug-bounces+fil