Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
d69092a7
Commit
d69092a7
authored
Jul 10, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify changelog entry on ways to deal with the incompatible binop method change.
parent
9cb557c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
CHANGES.rst
CHANGES.rst
+5
-2
No files found.
CHANGES.rst
View file @
d69092a7
...
...
@@ -11,9 +11,12 @@ Features added
*
Special
methods
for
binary
operators
now
follow
Python
semantics
.
Rather
than
e
.
g
.
a
single
``
__add__
``
method
for
cdef
classes
,
where
"self"
can
be
either
the
first
or
second
argument
,
one
can
now
define
both
``
__add__
``
and
``
__radd__
``
as
for
standard
Python
classes
.
both
``
__add__
``
and
``
__radd__
``
as
for
standard
Python
classes
.
This
behavior
can
be
disabled
with
the
``
c_api_binop_methods
``
directive
to
return
to
the
previous
semantics
in
Cython
code
.
to
return
to
the
previous
semantics
in
Cython
code
(
available
from
Cython
0.29.20
),
or
the
reversed
method
(``
__radd__
``)
can
be
implemented
in
addition
to
an
existing
two
-
sided
operator
method
(``
__add__
``)
to
get
a
backwards
compatible
implementation
.
(
Github
issue
#
2056
)
*
No
/
single
argument
functions
now
accept
keyword
arguments
by
default
in
order
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment