Re:Python Design Patterns (2018)
by Spivak on Monday March 14, 2022 @01:52PM
(#30675607)
Bound methods in Python are one of the keys to enlightenment to understanding its object system -- that self isn't magic and you could implement it yourself (for example having instance methods take a self, and cls parameter) if you wanted. One fun exercise is implementing an object that can "adopt" loose functions.
[ Parent
| on HN ]
There are no comments on this comment yet.