Commit 975a43a6 authored by Stefan Behnel's avatar Stefan Behnel

Clarify backwards incompatible special method change in changelog.

parent a4fd9f4e
...@@ -8,11 +8,12 @@ Cython Changelog ...@@ -8,11 +8,12 @@ Cython Changelog
Features added Features added
-------------- --------------
* Added support for Python binary operator semantics. * Special methods for binary operators now follow Python semantics.
One can now define, e.g. both ``__add__`` and ``__radd__`` for cdef classes Rather than e.g. a single ``__add__`` method for cdef classes, where
as for standard Python classes rather than a single ``__add__`` method where "self" can be either the first or second argument, one can now define
self can be either the first or second argument. This behavior can be disabled both ``__add__`` and ``__radd__`` as for standard Python classes .
with the ``c_api_binop_methods`` directive. This behavior can be disabled with the ``c_api_binop_methods`` directive
to return to the previous semantics in Cython code.
(Github issue #2056) (Github issue #2056)
* No/single argument functions now accept keyword arguments by default in order * No/single argument functions now accept keyword arguments by default in order
......
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