Re:A Guide to Python's Magic Methods (2012)
by Puer on Thursday August 09, 2018 @08:35PM
(#17729774)
Could you give an example of how you would use these methods to debug versus other methods/approaches? I'd love to hear if you're willing to share--I program mainly in Python these days but Python's magic methods are definitely something I need to understand at a deeper level.
[ Parent
| on HN ]
Re:A Guide to Python's Magic Methods (2012)
by travisjungroth on Friday August 10, 2018 @01:36AM
(#17730947)
Fluent Python has a chapter on these methods and I highly recommend it. Also, these are much better described as dunder methods (short for double underscore) than magic methods. There's really no magic to them.