Commit 75efd445 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Remove obsolete note about __new__ vs __cinit__.

Using __new__ was made an error 8 years ago, keeping this in the docs just causes confusion at this point (e.g. #2311).
parent 53b6f435
...@@ -90,14 +90,6 @@ complaining about the signature mismatch. ...@@ -90,14 +90,6 @@ complaining about the signature mismatch.
See :ref:`existing-pointers-instantiation` for an example. See :ref:`existing-pointers-instantiation` for an example.
.. Note::
Older Cython files may use :meth:`__new__` rather than :meth:`__cinit__`. The two are synonyms.
The name change from :meth:`__new__` to :meth:`__cinit__` was to avoid
confusion with Python :meth:`__new__` (which is an entirely different
concept) and eventually the use of :meth:`__new__` in Cython will be
disallowed to pave the way for supporting Python-style :meth:`__new__`
.. [#] http://docs.python.org/reference/datamodel.html#object.__new__ .. [#] http://docs.python.org/reference/datamodel.html#object.__new__
.. _finalization_method: .. _finalization_method:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment