2014-04-02 19:56 GMT+08:00 林守磊 <linxiu...@gmail.com>:
> tell me why python3.2 case problem below
>
>
>     return u'[%s-%s]' % (unichr(a), unichr(b))
>                             ^
> SyntaxError: invalid syntax


Well, it seems to be an upstream bug, as Python 3.2 does not recognize
the old (Python 2.x) style for Unicode literals. Python 3.3 adds the
syntax back, so the program will work in Python 3.3 but not 3.2. You
definitely should report this to upstream; it won't take much time to
fix bugs of this sort. :)

Reply via email to