>>>>> "Dustin J. Mitchell" <[email protected]>:
> ... That's an generator expression, which I *thought* was supported
> in Py2.3. Does Py2.3 support list comprehensions? What do you get
> from
>>>> print "|".join(str(x) for x in range(10))
>>>> print "|".join([str(x) for x in range(10)])
I bit too late, I guess, but here it is anyway:
$ python
Python 2.3.3 (#1, Apr 6 2004, 11:06:09)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "|".join(str(x) for x in range(10))
File "<stdin>", line 1
print "|".join(str(x) for x in range(10))
^
SyntaxError: invalid syntax
>>> print "|".join([str(x) for x in range(10)])
0|1|2|3|4|5|6|7|8|9
_______________________________________________
Svnmerge mailing list
[email protected]
http://www.orcaware.com/mailman/listinfo/svnmerge