2to3c: an implementation of Python's 2to3 for C code

"2to3c: an implementation of Python's 2to3 for C code"

See http://dmalcolm.livejournal.com/3935.html for a description of this tool.

It works on C modules. So it should be easier for people to do ports to py3k for their C modules.

The 2to3c tool uses Coccinelle for transformations on the C code. This program has been used for linux, and other software... for updating code when their APIs change.

The perfect fit for the python C API changes!

Comments

Edward K Ream said…
The first python script I ever wrote was c2py: a program that eased the migration of C++ code to Python code.

I used it to port the Borland C version of Leo to Python. It did maybe 80% of the grunt work involved.

For details, see scripts.leo in the Leo distribution.
http://webpages.charter.net/edreamleo/front.html

Edward K. Ream

Popular posts from this blog

Draft 3 of, ^Let's write a unit test!^

Is PostgreSQL good enough?

post modern C tooling - draft 6