2 | 1,356 | 170 |
---|---|---|
articles | words | lines of code |
The dunder method __new__
is used to customise object creation and is a core stepping stone in understanding metaprogramming in Python.
Think of a number between 1 and 10. Multiply it by 9 and subtract 1. Now close your eyes. It got dark, didn't it?