Re: Zope vs. Python 3 porting roadmap

Jim Fulton <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Tue, Nov 23, 2010 at 4:09 PM, Lennart Regebro <[email protected]> wrote:
> High hanging fruit:
> ===================
> zc.buildout: (depends on itself, hard to use 2to3)
>    setuptools - Done
>    zope.testing - [test] Done, not released
> COMMENT: Since zc.buildout uses itself to install and run and test, it needs to
> support Python 3 before you can start porting it to Python 3. Tricky. :-)

This is like saying it needed to support Python 2 before it could be
written on Python 2.

> Using 2to3 get's complicated, so I'm trying to port this to Python 2 without
> it.

I assume you mean Python 3.  I think this (not trying to use 2to3) is
the right approach.

> That too is a horrid nightmare, since zc.buildout also tend to
> generate code from strings,

The code it generates is pretty simple, but if it can't generate
2&3-compatible code, then not worrying about 2to3 should make
generating code simpler.

> and then makes things even more fun by
> having tests that require there to be at least three different
> versions released on PyPI. :-)

The upgrade tests?  The bootstrap tests?  I would disable these to get started.

Jim

-- 
Jim Fulton
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.