[SAGA-RG] Python Bindings
Ole Weidner
ole.weidner at rutgers.edu
Mon Nov 12 14:43:40 EST 2012
Hi Andre,
can you please lay out the arguments for the existence of these abominable is_dir_self, is_link_self, etc. constructs? (With some example code, if possible). They look beyond awful and are, btw. a violation of GFD.90 ;-) Let's see if we can come up with something better!
Thanks!
Ole
On Nov 12, 2012, at 14:33 , Andre Merzky <andre at merzky.net> wrote:
> Hi Ole,
>
> On Mon, Nov 12, 2012 at 7:40 PM, Ole Weidner <ole.weidner at rutgers.edu> wrote:
>> 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']})
>
> I should have added that in the bindings - the implementation allows
> that already. Thanks!
>
>
>> 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.
>
>
> Makes sense.
>
> Best, Andre.
>
>
>> 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
>>
>
>
>
> --
> Nothing is really difficult...
More information about the saga-rg
mailing list