[Zope] Grabbing an item from a list of tuples

H.de.Wit@SFK.NL H.de.Wit@SFK.NL
Fri, 19 Jul 2002 17:48:51 +0200


>How can I specifically reference the urls/titles separately?

Something like this?

myCount = 0
for elem in p.anchors:
      print myCount, ": ", elem[1]
      myCount += 1

(didn't test it)
elem[1] is the second value of the tuple


Hans de Wit
Stichting Farmaceutische Kengetallen
Postbus 30460
2500 GL  DEN HAAG
Tel. 070-3737448
Fax 070-3737445