[Biopython-dev] GSoC code+documentation review: PhyloXML for Biopython

Peter biopython at maubp.freeserve.co.uk
Sat Jul 4 10:14:03 EDT 2009


On Thu, Jul 2, 2009 at 9:59 PM, Eric Talevich<eric.talevich at gmail.com> wrote:
> Hi all,
>
> While everyone was away in Stockholm having a great time, I added some
> user-oriented documentation for my project to the Biopython wiki:
> http://www.biopython.org/wiki/PhyloXML
>
> What do you think? Any missing information, unclear wording, or outright
> lies?

The __repr__ thing isn't Biopython specific, its just what Python does. For
simple objects, eval(repr(obj)) should recreate the object. Consider:

>>> print phx.other
[Other(tag=alignment, namespace=http://example.org/align)]

That is odd to me. It looks like "other" is a list, containing an "Other"
object, but with a funny __repr__ - I would have expected it to look more
like this:

>>> print phx.other
[Other(tag="alignment", namespace="http://example.org/align")]

i.e. using the repr of what I have assumed are string arguments.

Peter


More information about the Biopython-dev mailing list