Does python 3.1 support sybase module?

P

Pravin

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$
 
C

Chris Rebert

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
 
A

alex23

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 ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top