Nanjundi a écrit :
> On Apr 10, 10:23 am, "Lucas Malor" <[EMAIL PROTECTED]> wrote:
>
>> Thank you. Do you know also if I can do a similar operation with
>> functions? I want to select with a string a certain get() function
>> of ConfigParser:
>>
>> if type == "int" : funcname = "getint" elif t
On Apr 10, 10:23 am, "Lucas Malor" <[EMAIL PROTECTED]> wrote:
> Peter Otten wrote:
> > Lucas Malor wrote:
>
> >> The problem is options is an instance, so options."delete", for example,
> >> is wrong; I should pass options.delete . How can I do?
>
> > Use getattr():
>
> Thank you. Do you know also
En Tue, 10 Apr 2007 11:23:37 -0300, Lucas Malor <[EMAIL PROTECTED]>
escribió:
> Peter Otten wrote:
>> Lucas Malor wrote:
>>>
>>> The problem is options is an instance, so options."delete", for
>>> example,
>>> is wrong; I should pass options.delete . How can I do?
>>
>> Use getattr():
>
> Than
Lucas Malor wrote:
> Peter Otten wrote:
>> Lucas Malor wrote:
>>> The problem is options is an instance, so options."delete", for example,
>>> is wrong; I should pass options.delete . How can I do?
>> Use getattr():
>
> Thank you. Do you know also if I can do a similar operation with functions? I
Lucas Malor a écrit :
> Peter Otten wrote:
>> Lucas Malor wrote:
>>> The problem is options is an instance, so options."delete", for
>>> example, is wrong; I should pass options.delete . How can I do?
>> Use getattr():
>
> Thank you. Do you know also if I can do a similar operation with
> function
Peter Otten wrote:
> Lucas Malor wrote:
>>
>> The problem is options is an instance, so options."delete", for example,
>> is wrong; I should pass options.delete . How can I do?
>
> Use getattr():
Thank you. Do you know also if I can do a similar operation with functions? I
want to select with a