commit | a54eab92d265337996b8e4b4149d9176c2d428a6 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Sun Apr 26 22:53:50 2020 +0200 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Sun Apr 26 22:53:50 2020 +0200 |
tree | 1ece58db38f21165b16d8f4bbadc46f70481f0a5 | |
parent | 2c4cd8419dd81f0563373150c5c1474bfc308352 [diff] |
Revert "Change __init__(self) to __new__(cls)" This reverts commit 9ed8b44033e64f2990bf123b5057e92b8142edae.
diff --git a/docs/advanced/cast/custom.rst b/docs/advanced/cast/custom.rst index f803594..e4f99ac 100644 --- a/docs/advanced/cast/custom.rst +++ b/docs/advanced/cast/custom.rst
@@ -23,7 +23,7 @@ .. code-block:: python class A: - def __new__(cls): + def __int__(self): return 123 from example import print