python 3.x

56 views
Skip to first unread message

Toon's

unread,
Dec 19, 2010, 5:57:53 AM12/19/10
to PyDbLite
Hi

It would be great to make pydblite compatible with both python 2.3+
and 3.x

thanks

Pierre Quentel

unread,
Jan 16, 2011, 7:07:36 AM1/16/11
to PyDbLite
Hi,

That was a very good suggestion, thanks !

It took me some time be switch to Python3. I just committed a new
branch on the SVN repository, you can find it and do some tests here :
http://pydblite.svn.sourceforge.net/viewvc/pydblite/branches/python3/

Best regards,
Pierre

Toon's

unread,
Feb 20, 2011, 10:21:54 AM2/20/11
to PyDbLite
Merci !

Pierre Quentel

unread,
Feb 21, 2011, 4:38:35 AM2/21/11
to PyDbLite
> > > thanks- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -
Hi,

Have you tested this version ? If so, did everyhting work or have you
found bugs ?

Cordialement,
Pierre

Toon's

unread,
Feb 27, 2011, 10:58:22 AM2/27/11
to PyDbLite
Hi,
I put your PyDbLite_3 script and rewrote the __init__ file :
8<--- __init__.py --->8
import sys
version = float(sys.version.split(" ")[0][:-2])
if version < 2.7:
from .PyDbLite import Base
else:
from .import Base
del PyDbLite_3

del sys, version
8<------------------>8

And it seems all is going on with python 2.5, 2.7 and 3.1

PS : I only use PyDbLite.Base class
Reply all
Reply to author
Forward
0 new messages