We don't bite newbies here... much | |
PerlMonks |
Re^3: Thx, St. Larry, for the Beauty of Sigilsby LanX (Saint) |
on Jul 30, 2019 at 14:30 UTC ( [id://11103625]=note: print w/replies, xml ) | Need Help?? |
Just yesterday I had to implement a proxy object which delegates calls to other objects. getattr() seems to be like Perl's ->can() , but with the difference that you have to check the type in Python by yourself. IIRC are classes and objects in Python dicts anyway, which can be accessed via __dict__, though w/o inheritence.
Cheers Rolf
In Section
Meditations
|
|