[Biopython-dev] Updating C extensions to Python 3

Peter biopython at maubp.freeserve.co.uk
Sat Dec 18 12:18:47 UTC 2010


On Sat, Dec 18, 2010 at 3:20 AM, Michiel de Hoon <mjldehoon at yahoo.com> wrote:
> Hi everybody,
>
> I looked at what will be needed to make Biopython's C extensions
> ready for Python 3. It doesn't seem too bad, so if there are no
> objections then I will go ahead and make the necessary changes
> over the next two weeks or so. If you are maintaining one of the
> C extensions and would like to make the required changes yourself,
> please let us know, then I won't touch those modules.
>
> Best,
> --Michiel.

Excellent news :)

I did have a try at this once before, but it seemed tricky to me.
You know a lot more about the Python C API, so I was hoping
you'd be able to look at this. If you haven't already, check out
NumPy for inspiration - although in C land you should just
needs some #if defined checks on the Python version, they
may have solved many of the issues we will face. I suspect
the string/unicode handling will be hardest - so if I were you
I'd start on a purely numerical C module.

Peter



More information about the Biopython-dev mailing list