[Zope] Python Scripts: using the zip function
Kevin Teague
kevin@bud.ca
Mon, 26 Feb 2001 19:13:18 -0800
Does anyone handy with Python Scripts know how to use the built-in function
zip, which was introduced in Python 2.0?
I'm using Zope 2.3.1 with ActivePython 2.0 build 202 and if I run the python
interpreter I get:
>>> a = (1,2,3)
>>> b = (4,5,6)
>>> c = zip(a,b)
>>> print c
[(1, 4), (2, 5), (3, 6)]
But if I try the same thing in a Python Script I get:
Error Type: NameError
Error Value: There is no variable named 'zip'
Kevin Teague
http://www.bud.ca