[ZODB-Dev] Python 3 support for relstorage

2014-09-07 Thread Antti Haapala
Hi all,

Recently I wanted to have relstorage on Python 3, so I made a fork at
http://github.com/ztane/relstorage, and tried to make it polyglot with
minimal changes. I did not even use six as I didn't want any extra imports
(I just realized later that ZODB was using it), just wrote a single module
compat.py with all the differences in invocations (mostly). Now, with
PostgreSQL setup.py test passes 256/256 on Python 2.7 and 255/255 on Python
3.4.

There is the one test checkNonASCIITransactionMetadata
doing setUser with non-ascii characters that did not seem to be supported
in transaction and ZODB themselves so I dropped it out for PY3.

I am not an expert on relstorage (never used it before), so I am not sure
how buggy it is - I needed to change the *tests* themselves a lot; also,
mysql-python is not available for Python 3, I do not care enough about
MySQL to install it nor to make it use another module, and I can't afford
Oracle ;).

I wrote the code to work on Python 2.6 also (it avoids `except Cls as e`
for example), however I do not have Python 2.6 installed either.

Comments?

-- 
Antti Haapala
___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] Python 3

2008-12-05 Thread Adam
Hi all,

Is there a roadmap for getting ZODB to work on Python 3 or is that
beyond the realms of possibility?

Possibly, using a Python 2 ZEO server and connecting using a Python 3
ClientStorage?

Many thanks,

Adam

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Python 3

2008-12-05 Thread Andreas Jung

On 05.12.2008 17:15 Uhr, Adam wrote:

Hi all,

Is there a roadmap for getting ZODB to work on Python 3 or is that
beyond the realms of possibility?

Possibly, using a Python 2 ZEO server and connecting using a Python 3
ClientStorage?




The general goal in the Zope world right now is to support the latest 
Python 2.X versions. Py3K support is unlikely a major goal for us right 
now.


-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd.  Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Python 3

2008-12-05 Thread Fred Drake
On Fri, Dec 5, 2008 at 11:15 AM, Adam [EMAIL PROTECTED] wrote:
 Is there a roadmap for getting ZODB to work on Python 3 or is that
 beyond the realms of possibility?

 Possibly, using a Python 2 ZEO server and connecting using a Python 3
 ClientStorage?

I can't speak for Jim, but here's my thoughts, anyway.

The biggest hurdles for packages that have substantial test suites and
development tool support (like ZODB) will be the availability of
tools.

At this point, setuptools and zc.buildout don't support Python 3 yet;
until setuptools is available there's unlikely to be any movement to
supporting Python 3 in the Zope world.

Hopefully, someone will deal with that fairly soon, but I can't bring
myself to hold my breath for it.


  -Fred

-- 
Fred L. Drake, Jr.fdrake at gmail.com
Chaos is the score upon which reality is written. --Henry Miller
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Python 3

2008-12-05 Thread Jim Fulton

On Dec 5, 2008, at 11:22 AM, Fred Drake wrote:

 On Fri, Dec 5, 2008 at 11:15 AM, Adam [EMAIL PROTECTED] wrote:
 Is there a roadmap for getting ZODB to work on Python 3 or is that
 beyond the realms of possibility?

 Possibly, using a Python 2 ZEO server and connecting using a Python 3
 ClientStorage?

 I can't speak for Jim, but here's my thoughts, anyway.

 The biggest hurdles for packages that have substantial test suites and
 development tool support (like ZODB) will be the availability of
 tools.

 At this point, setuptools and zc.buildout don't support Python 3 yet;
 until setuptools is available there's unlikely to be any movement to
 supporting Python 3 in the Zope world.

 Hopefully, someone will deal with that fairly soon, but I can't bring
 myself to hold my breath for it.


I suspect there are many holes/issues with the standard library. My  
impressions that many more liberties were taken with the standard  
library than with the language itself, but I haven't been able to pay  
very close attention.

Jim

--
Jim Fulton
Zope Corporation


___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Python 3

2008-12-05 Thread Jim Fulton

On Dec 5, 2008, at 11:15 AM, Adam wrote:

 Hi all,

 Is there a roadmap for getting ZODB to work on Python 3

No.

 or is that
 beyond the realms of possibility?

I'm sure it's possible.  I think it will be rather hard and there are  
much much ...


much higher priorities, at least for me.


 Possibly, using a Python 2 ZEO server and connecting using a Python 3
 ClientStorage?


That would be a goal. I don't think it reduces the effort all that much.

Jim

--
Jim Fulton
Zope Corporation


___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev