[SAGA-RG] Python Bindings
Ole Weidner
ole.weidner at rutgers.edu
Mon Nov 12 13:40:03 EST 2012
Hi Andre, All
I was just thinking through some practical / convenient improvements for the Python Language bindings. Do you think it would make sense to allow creation of a saga.job.Description from a dictionary, e.g.,
jd = saga.job.Description({'Executable':'/bin/sleep', 'Arguments':['60']})
IMHO this would be a very nice, optional addition. In conjunction with the already existing attributes_as_dict(), the API would become more 'symmetric' and would allow not only serialization but also convenient de-serialization.
Also, *please* rename attributes_as_dict() to as_dict(). The attribute_ prefix is redundant (Attributes.attributes_as_dict()) and as_dict() is just more commonly used.
Cheers,
Ole
On Nov 9, 2012, at 20:32 , Andre Merzky <andre at merzky.net> wrote:
> Yes, sure! I am still working on the parameter
> types/names/documentation, and will send it around as soon as that is
> done.
>
> The sources are as always in the redmine git.
>
> Best, Andre.
>
>
> On Fri, Nov 9, 2012 at 8:23 PM, Steve Fisher <dr.s.m.fisher at gmail.com> wrote:
>> Andre,
>> Will you circulate a new PDF when you want us to read it again?
>> Steve
>
>
>
> --
> Nothing is really difficult...
> --
> saga-rg mailing list
> saga-rg at ogf.org
> https://www.ogf.org/mailman/listinfo/saga-rg
More information about the saga-rg
mailing list