No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^3: Thx, St. Larry, for the Beauty of Sigils
by LanX
|
|