[Biopython-dev] test_PhyloXML.py on Python 3
Michiel de Hoon
mjldehoon at yahoo.com
Wed Aug 18 12:55:25 UTC 2010
Since handle.tell() returns a long integer, I agree that we can remove the long().
--Michiel.
--- On Tue, 8/17/10, Peter <biopython at maubp.freeserve.co.uk> wrote:
> From: Peter <biopython at maubp.freeserve.co.uk>
> Subject: Re: [Biopython-dev] test_PhyloXML.py on Python 3
> To: "Eric Talevich" <eric.talevich at gmail.com>, "Michiel de Hoon" <mjldehoon at yahoo.com>
> Cc: "Biopython-Dev Mailing List" <biopython-dev at biopython.org>
> Date: Tuesday, August 17, 2010, 3:41 PM
> On Tue, Aug 17, 2010 at 5:37 PM,
> Peter wrote:
> >
> > The other three uses of long I identified can probably
> be solved
> > neatly like this:
> >
> > try:
> > end = long(handle.tell())
> > except NameError:
> > #Python 3 where 2to3 long fixer was disabled
> > end = handle.tell()
> >
>
> On closer inspection, probably we can just remove the
> long():
>
> http://github.com/biopython/biopython/commit/e11eb52413e5fe78619c4cf5511a4db1319931fa
>
> Michiel - is this OK? This was indexing code you wrote to
> replace the Mindy stuff as I recall:
>
> http://github.com/biopython/biopython/commit/f17fb613cccd15e28f9f98709742f48d87ae27d4
>
> http://github.com/biopython/biopython/commit/f17fb613cccd15e28f9f98709742f48d87ae27d4
>
> Files:
>
> * Bio/Prosite/__init__.py
> * Bio/Prosite/Prodoc.py
> * Bio/SwissProt/SProt.py
>
> Peter
>
More information about the Biopython-dev
mailing list