Return the value of the named attribute of object. name must be a string. If the string is the name of one of the object’s attributes, the result is the value of that attribute. For example, getattr(x, 'foobar') is equivalent to x.foobar. If the named attribute does not exist, default is returned if provided, otherwise AttributeError is raised.
Il semble (mais je peux me tromper) que ceci ne concerne que les attributs et non les méthodes ...
[^] # Re: A quand l'équivalent des symboles Ruby en Python ?
Posté par totof2000 . En réponse à la dépêche Python 3.4 est sorti avec 7 nouveaux modules. Évalué à 0.
D'après la doc python :
Il semble (mais je peux me tromper) que ceci ne concerne que les attributs et non les méthodes ...