From: Pravin on 10 Sep 2009 01:21 Does python 3.1 support sybase module? It works fine with 2.5. I was getting following error while installing sybase module on python 3.1. bash-3.00$ python3.1 setup.py install File "setup.py", line 248 maintainer=u"Sebastien Sable", ^ SyntaxError: invalid syntax bash-3.00$
From: Chris Rebert on 10 Sep 2009 01:57 On Wed, Sep 9, 2009 at 10:21 PM, Pravin<pravinchavan2000(a)gmail.com> wrote: > Does python 3.1 support sybase module? It works fine with 2.5. > I was getting following error while installing sybase module on python > 3.1. > > bash-3.00$ python3.1 setup.py install > Â File "setup.py", line 248 > Â Â maintainer=u"Sebastien Sable", > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ^ > SyntaxError: invalid syntax That's the old literal syntax for Unicode strings. In 3.x, Unicode strings are the default and the 'u' prefix is no longer required. Anyway, it's doubtful that a module not specifically ported to Python 3.0+ would work unmodified, given the many backwards-incompatible changes that took place. Unless there's a Python 3.0+ specific version of the library, you're probably out of luck for now. Cheers, Chris -- http://blog.rebertia.com
From: Michel Claveau - MVP on 10 Sep 2009 02:17 Hi, What is this final comma? @+ -- MCI
From: alex23 on 10 Sep 2009 21:21 On Sep 10, 4:17 pm, "Michel Claveau - MVP"<enleverLesX_XX...(a)XmclavXeauX.com.invalid> wrote: > What is this final comma? My guess without looking at the code is that the line occurs in a dict definition: PACKET_OF_VALUES = dict( maintainer=u"Sebastien Sable", version=3.0, ... ) Either that or 'maintainer' is a tuple ;)
|
Pages: 1 Prev: hanning python Next: AttributeError: 'NoneType' object has no attribute 'get_text' |