[Biopython-dev] [Bug 3046] PhyloXML, please define get/set methods
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Tue Apr 6 22:56:13 UTC 2010
http://bugzilla.open-bio.org/show_bug.cgi?id=3046
------- Comment #3 from biopython-bugzilla at maubp.freeserve.co.uk 2010-04-06 18:56 EST -------
(In reply to comment #2)
>
> Hi, Peter,
>
> Actually, I was thinking that the PhyloXML interface is *too* Java-esque.
> The functionality I'm trying to get was summarized in the previous feature
> request, namely a concise list comprehension such as:
>
> [node.set_property(prop_arr[i], *prop_params, **prop_keywords)
> for i, node in tree.enumerate_internals()]
I don't understand what you are trying to do in this example, but a method
called set_property seems wrong - are you trying to do something using
property attributes for new-style Python classes?
Also why are you using a list comprehension if you care about the side
effects (creating a property)? Why not just use a for loop?
Peter
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list