mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
Revert "Change __init__(self) to __new__(cls)"
This reverts commit 9ed8b44033.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user