[Biopython-dev] 2to3 and doctests

Peter biopython at maubp.freeserve.co.uk
Fri Jul 16 16:12:04 UTC 2010


2010/7/16 Tiago Antão <tiagoantao at gmail.com>:
> 2010/7/16 Peter <biopython at maubp.freeserve.co.uk>:
>> We'll need to tweak input vs raw_input (Python 3 vs Python 2).
>
> Me thinks this is probably enough?
> if sys.version_info[0] == 3:
>    def raw_input():
>        return input()

Unless 2to3 does something horrible to that, yes. Do you want
to test this and check it in now? I've got some other things to
be getting on with so I'll take a break from updating the trunk
with small Python 3 changes ;)

Peter




More information about the Biopython-dev mailing list