Re: [Sqlalchemy-tickets] [sqlalchemy] #2863: ParseError on installation, Python 3.3
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-11-11 03:35:49
|
#2863: ParseError on installation, Python 3.3
----------------------------------+------------------------------------
Reporter: Julian_O | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone:
Component: (none) | Severity: no triage selected yet
Resolution: | Keywords:
Progress State: awaiting triage |
----------------------------------+------------------------------------
Comment (by Julian_O):
The first two lines in question are of the format:
{{{
>>> print Session().query(User, User.balance).\\
... join(User.accounts).filter(User.balance > 5000)
}}}
i.e. they are doctest strings, using the Python 2.x format.
I wonder if 2to3 is being confused by the existence of an old format print
statement within a comment.
I suggest replacing it with the new style print function (i.e.
parenthesis) to satisfy 2to3.
{{{
>>> print(Session().query(User, User.balance).\\
... join(User.accounts).filter(User.balance > 5000))
}}}
If that doesn't work, replace print with str.
{{{
>>> str(Session().query(User, User.balance).\\
... join(User.accounts).filter(User.balance > 5000))
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2863#comment:1>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|