3 ms·
That's partially true, but note that Python does, to a fairly large extent, have One True Way of formatting code (i.e. PEP-8). Although, amusingly, I can't act
by JoachimSchipper 13y ago
That's partially true, but note that Python does, to a fairly large extent, have One True Way of formatting code (i.e. PEP-8).
Although, amusingly, I can't actually find this rule in PEP-8.
- masklinn 13y agoNot calling dunder methods directly doesn't really need to be in PEP8, they're data model methods for overloading protocols, their whole purpose is to be used by some other "top-level" operation if and when necessary (nb: this may or may not apply when implementing or overloading dunder methods, but that's a special case)