[SAGA-RG] SAGA attributes as Python dictionaries?
Andre Merzky
andre at merzky.net
Fri Nov 6 06:38:12 CST 2009
Quoting [Mathijs den Burger] (Nov 06 2009):
>
>> But maybe its time by now to come to a conclusion - I think I am
>> reading the same arguments over and over again in the thread ;)
>>
>> So, there have been different proposals:
>>
>> A) description.executable = "/bin/date";
>> description.set_attribute ("Executable", "/bin/date");
>>
>> B) description[executable] = "/bin/date";
>> description.set_attribute ("Executable", "/bin/date");
>>
>> C) description.attributes.executable = "/bin/date";
>> description.set_attribute ("Executable", "/bin/date");
>>
>> D) description.attributes["Executable"] = "/bin/date";
>> description.set_attribute ("Executable", "/bin/date");
>>
>> E) description.set_attribute ("Executable", "/bin/date");
+1, for the same reasons as Mathijs.
A.
>> I think C and D did not catch on - just listed for completeness.
>> Did I forget a version?
>
> For completeness: how to express async and task versions.
> I assume that would look like:
>
> description.set_attribute("Executable", "/bin/date", TaskType.NORMAL)
>
> > So, I'd love to see a show of hands for the different versions -
> > maybe we can cut the thread short.
>
> I opt for E: one syntax for all cases is the simplest solution.
>
> best,
> Mathijs
>
>
--
Nothing is ever easy.
More information about the saga-rg
mailing list