Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`__defaults__` behavior different under cpython/cython #2650
We use a (admittedly hacky) behavior to change default kwargs in some of our tests:
Subsequent calls to
I've written a minimal test case and a script that demonstrates the behavior in this case. I've captured my local output in that gist at well. Note the difference in the second
Happy to give any further information if requested.
Binding makes Cython functions use a custom type, instead of the normal Python type for builtin methods/functions. That makes them behave identically to normal functions for bound/unbound method behavior, and also adds a