mjole...@gmail.com wrote:
> What is the purpose of getattr? Why not just use help or am I completely
> misunderstanding this?
>
>>From what I read, getattr allows you to get a reference to a function
>>without knowing its name until runtime.
>
> However, the example provided is:
>
> li = ['larr
What is the purpose of getattr? Why not just use help or am I completely
misunderstanding this?
>From what I read, getattr allows you to get a reference to a function without
>knowing its name until runtime.
However, the example provided is:
li = ['larry', 'curly]
getattr(li, 'pop')
It seems