mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-23 23:49:24 +08:00
Revert "Change __init__(self) to __new__(cls)"
This reverts commit 9ed8b44033e64f2990bf123b5057e92b8142edae.
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
|
||||
|
||||
class A:
|
||||
def __new__(cls):
|
||||
def __int__(self):
|
||||
return 123
|
||||
|
||||
from example import print
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user