[Python-porting] [RELEASED] six 1.1

Benjamin Peterson benjamin at python.org
Wed Nov 23 17:55:42 CET 2011

2011/11/23 Barry Warsaw <barry at python.org>:
> On Nov 22, 2011, at 11:45 PM, Benjamin Peterson wrote:
>>I'm pleased to announce the immediate availability of six 1.1.0. six
>>is a small compatibility library for writing code that works on Python
>>2 and 3 without modification.
> Nice.  I skimmed the documentation, and there are definitely a few things that
> I think would have been helpful in my current porting tasks.  I especially
> like with_metaclass() since that's the one syntax that I've had to resort to
> exec'ing for.

Glad to be helpful. :)

> There are some good porting guides out there, but I've found some holes, at
> both the Python and C levels.  I'll write up the details (e.g. __next__()
> vs. next()) hopefully today, I've also found a few more traps and tricks for
> extension modules.  I wonder if you have any interest in adding some C level
> portability helpers.

You mean like a header file with macros for PyInt -> PyLong/PyString
-> PyUnicode etc?


More information about the Python-porting mailing list