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 to me that I need to know the name of the function to use getattr? Please help. Sent from my iPhone _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor