[SAGA-RG] SAGA attributes as Python dictionaries?

Andre Merzky andre at merzky.net
Tue Nov 10 03:48:21 CST 2009


We do have that in C++, and IIRC you guys also have that in Java?
It nicely minimized typos on user side.

If that is not against python ethics, why not put it in?

Cheers, Andre.


Quoting [Mathijs den Burger] (Nov 10 2009):
> 
> On Mon, 2009-11-09 at 22:57 +0100, Andre Merzky wrote:
> 
> > I think we have an agreement on E then:
> > 
> >   E)  description.set_attribute ("Executable", "/bin/date");
> > 
> > So, no dict, no properties, but a simple plain SAGA attribute API.
> 
> Nice! One leftover thing: should the API provide string constants (as
> Python class attributes) for the available SAGA attribute names? 
> 
> Example:
> 
> description.set_attribute(JobDescription.EXECUTABLE, "/bin/date")
> 
> regards,
> -Mathijs
> 
> 



-- 
Nothing is ever easy.


More information about the saga-rg mailing list