[Biopython-dev] Updating C extensions to Python 3

Peter biopython at maubp.freeserve.co.uk
Sun Dec 26 14:27:32 UTC 2010


On Sun, Dec 26, 2010 at 1:30 PM, Michiel de Hoon <mjldehoon at yahoo.com> wrote:
> Thanks for noticing this.
> I just uploaded a different solution though: The PyBytes_Check function
>  is used only in _create_bytes_object, which is needed only in Python 3.
> I now put the appropriate #if's around _create_bytes_object, so
> PyBytes_Check won't be needed on Python 2.

Yeah, that's cleaner :)

Peter



More information about the Biopython-dev mailing list