[Zope-dev] Python 3.3 port of zope.configuration

Tres Seaver tseaver at palladion.com
Thu Apr 12 23:37:46 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/11/2012 03:57 AM, Brian Sutherland wrote:
> Hi,
> 
> I'd like to merge 2 branches which get zope.configuration's tests 
> running on Python 3.3. Here is an overview (with patches attached):
> 
> zope.schema:
> 
> *
> svn+ssh://svn.zope.org/repos/main/zope.schema/branches/jinty-native_string
>
>  * This branch corrects a mistake I think I made in the zope.schema 
> Python3 port. After my experience with the zope.configuration port I
> now think that the URI field should be a "native" string rather than
> bytes.
> 
> Unfortunately this change is backwards incompatible for Python 3 users
> of zope.schema. But I think the number users of zope.schema under
> Python 3 are rather small at this point.
> 
> * I make public NativeString and NativeStringLine classes. These are 
> equivalent to the Bytes type under Python 2 and the Text type under 
> Python 3. Please devote some bikeshedding energy to better names for
> these classes ;)
> 
> zope.configuration:
> 
> *
> svn+ssh://svn.zope.org/repos/main/zope.configuration/branches/jinty-python3
>
>  * Adds a dependency on six
> 
> * Drops Python 2.4 and 2.5 compatibility
> 
> To run the tests of the zope.configuration branch you currently need
> to use the zope.interface trunk.
> 
> If there are no objections, I'll merge in a few weeks or so.

How deep is the six dependency?  For every package I've ported to date,
it has ended up being more sensible to implement a local '_compat' module
which had only the needed straddles (sometimes inspired by six, sometimes
very localized).

Also, do your branches still pass tests on 3.2.x?  I'm sort of keen to
see both zope.schema and zope.configuration join the "2to3-free" camp
with zope.event, zope.interface, zope.i18nmessageid, and zope.exceptions
(yes, zope.configuration, I'm looking at you next).


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+HZ0oACgkQ+gerLs4ltQ4X/QCgm42Ky292CooBModA8nrkdKI2
yhAAoMa69RUXaTKlF0lKMjDdhOmrik4j
=E0P1
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list