On Wed, Nov 23, 2005 at 11:46:16PM -0200, Gustavo Noronha Silva wrote: | File "/usr/lib/zope2.8/lib/python/RestrictedPython/tests/before_and_after24.py", line 30 | x = (y**2 for y in whatever if y > 3) | ^ | SyntaxError: invalid syntax
This is a new feature added in python2.4. It is similar to a list comprehension, except this produces a generator object instead of a list. (just FYI; I don't know if 2.8 now requires python 2.4 or if only that test does and it should just be removed from the package or if it should be backported to 2.3 or what would be the best resolution) -D -- He who scorns instruction will pay for it, but he who respects a command is rewarded. Proverbs 13:13 www: http://dman13.dyndns.org/~dman/ jabber: [EMAIL PROTECTED]
signature.asc
Description: Digital signature