[Svnmerge] Problems with latest stable svnmerge.py on RHEL4

Steinar Bang sb at dod.no
Sat May 9 10:25:40 PDT 2009


>>>>> "Dustin J. Mitchell" <dustin at zmanda.com>:

> ...  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




More information about the Svnmerge mailing list