[Biopython-dev] 2to3 and doctests
Tiago Antão
tiagoantao at gmail.com
Fri Jul 16 16:16:50 UTC 2010
Ok, I will check this in, but I think a small note should be added
somewhere on how to use 2to3. I can do that if you tell me your
preferred place (README?).
2010/7/16 Peter <biopython at maubp.freeserve.co.uk>:
> 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
>
--
"If you want to get laid, go to college. If you want an education, go
to the library." - Frank Zappa
More information about the Biopython-dev
mailing list