-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map._extra_slots(): do not pass dict #24372
Comments
Branch: u/jdemeyer/ticket/24372 |
New commits:
|
Commit: |
comment:3
LGTM overall, but I do not feel 100% comfortable relying on an uninitialized
So I would add Probably we should also add the other cdef classes (such as |
comment:4
Interestingly, http://cython.readthedocs.io/en/latest/src/userguide/special_methods.html#initialisation-methods-cinit-and-init says "Any Python attributes have also been initialised to |
comment:5
So are you saying we should just leave it be? |
comment:6
Replying to @tscrim:
I just sent an email to the Cython mailing list to ask for clarification. |
comment:7
Reply from a Cython developer:
In short: what I did is correct. |
Reviewer: Travis Scrimshaw |
comment:8
Alright, then positive review. |
Changed branch from u/jdemeyer/ticket/24372 to |
In the
Map
method_extra_slots
, a dict is passed as input. That dict is then modified in-place and also returned as output.This awkward logic is not needed for anything. We simplify this by not passing a dict as input and creating a new dict from scratch if needed.
Component: coercion
Author: Jeroen Demeyer
Branch/Commit:
375e40f
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/24372
The text was updated successfully, but these errors were encountered: