Gentoo Archives: gentoo-user

From: Wang Xuerui <idontknw.wang@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to appoint python version for a package
Date: Wed, 02 Apr 2014 12:26:48
Message-Id: CABK5mSY2V6ibJkNmCL+0fGBu7oh4DVT-C_Ea22=S9RHrHP_5gw@mail.gmail.com
In Reply to: [gentoo-user] How to appoint python version for a package by "林守磊"
1 2014-04-02 19:56 GMT+08:00 林守磊 <linxiulei@×××××.com>:
2 > tell me why python3.2 case problem below
3 >
4 >
5 > return u'[%s-%s]' % (unichr(a), unichr(b))
6 > ^
7 > SyntaxError: invalid syntax
8
9
10 Well, it seems to be an upstream bug, as Python 3.2 does not recognize
11 the old (Python 2.x) style for Unicode literals. Python 3.3 adds the
12 syntax back, so the program will work in Python 3.3 but not 3.2. You
13 definitely should report this to upstream; it won't take much time to
14 fix bugs of this sort. :)

Replies

Subject Author
Re: [gentoo-user] How to appoint python version for a package Wang Xuerui <idontknw.wang@×××××.com>