Pythonic style

Random832 random832 at fastmail.com
Thu Apr 28 09:31:58 EDT 2016


On Thu, Apr 28, 2016, at 01:16, Rustom Mody wrote:
> On Thursday, April 28, 2016 at 9:26:21 AM UTC+5:30, Chris Angelico wrote:
> > My rule of thumb is: Dunders are for defining, not for calling. It's
> > not a hard-and-fast rule, but it'll get you through 99%+ of
> > situations.
> 
> Neat and clever.
> Should get in the docs somewhere

And even most of the obvious cases where you would want to call one
[e.g. on super] are in the course of implementing one.



More information about the Python-list mailing list