[Biopython-dev] [Bug 2822] Bio.Application.AbstractCommandline - properties and kwargs

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Apr 29 12:53:40 UTC 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2822





------- Comment #2 from biopython-bugzilla at maubp.freeserve.co.uk  2009-04-29 08:53 EST -------
OK, for the moment I'm going to give up on the property idea.  I was trying to
add them dynamically in __init__ or __new__ based on the parameter list, but
this is actually rather tricky.  I still think it should be possible though...

We could use __getattr__ but that doesn't create an entry in dir(...), and thus
is not discoverable - nor can use use each parameter's description for a
docstring this way.

Perhaps the simplest idea would be to the properties explicitly in each
subclass, but this would require more upfront effort as all the existing
property object lists would need to be replaced.


-- 
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