[Biopython-dev] Properties in Bio.Application interface?

Brad Chapman chapmanb at 50mail.com
Thu Apr 30 08:05:32 EDT 2009


Hi Peter;

> > I've filed Bug 2822 for these enhancements to the Bio.Application
> > based command line objects,
> > http://bugzilla.open-bio.org/show_bug.cgi?id=2822
> 
> I think I learnt some more about python in the process, which may be a
> sign that the code I've come up with is too complicated, but Bug 2822
> now has a patch to support both keyword arguments and properties in
> the Bio.Application style command line wrappers.  This will require
> minor changes to the __init__ method of any command line sub-class
> (demonstrated using Bio.Emboss.Applications only thus far).  I can
> envision a simpler approach to this code by defining the properties
> explicitly in each subclass, but that would mean a lot of boring/risky
> refactoring (or a clever script to do it for us).

I love what you are doing here. The keywords and properties make
it much more Pythonic; the old way reeks of Java-style get/sets. My
vote is to put them both in.

Brad


More information about the Biopython-dev mailing list