Re: Does python 3.1 support sybase module?

2009-09-10 Thread Michel Claveau - MVP
Hi,

What is this final comma?  

@+
-- 
MCI
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Does python 3.1 support sybase module?

2009-09-10 Thread alex23
On Sep 10, 4:17 pm, Michel Claveau -
MVPenleverlesx_xx...@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=uSebastien Sable,
version=3.0,
...
)

Either that or 'maintainer' is a tuple ;)

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Does python 3.1 support sybase module?

2009-09-09 Thread Chris Rebert
On Wed, Sep 9, 2009 at 10:21 PM, Pravinpravinchavan2...@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=uSebastien 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
-- 
http://mail.python.org/mailman/listinfo/python-list