'Is using magic methods in high level Python code is allowed by PEP8?
Is using magic methods in high level Python code is allowed by PEP8 ? For example, does PEP8 allows for:
ab = {'a', 'b'}
ab.__len__()
?
I often write code in editors when it's much easier to write left to right without going back to the beginning of a line.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
