mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
Revert "Change __init__(self) to __new__(cls)"
This reverts commit 9ed8b44033
.
This commit is contained in:
parent
2c4cd8419d
commit
a54eab92d2
@ -23,7 +23,7 @@ The following Python snippet demonstrates the intended usage from the Python sid
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
class A:
|
class A:
|
||||||
def __new__(cls):
|
def __int__(self):
|
||||||
return 123
|
return 123
|
||||||
|
|
||||||
from example import print
|
from example import print
|
||||||
|
Loading…
Reference in New Issue
Block a user