[lxml-dev] Problem installing lxml-2.0beta1 onto production server
Albert Brandl
albert.brandl at tttech.com
Mon Jan 21 09:13:04 CET 2008
On Sun, Jan 20, 2008 at 09:03:33PM -0500, Brad Clements wrote:
> File "build/bdist.linux-i686/egg/lxml/html/diff.py", line 323
> start.extend(tag for name, pos, tag in tag_stack)
> ^
> SyntaxError: invalid syntax
This looks like your server uses an older Python version.
"(tag for name, pos, tag in tag_stack)" is a generator expression,
which was introduced in Python 2.4.
Regards, Albert
More information about the lxml-dev
mailing list