#6590: [with patch, needs review] Cython __new__ should be __cinit__
----------------------+-----------------------------------------------------
Reporter: robertwb | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: build | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Comment(by robertwb):
If no __init__ parameters are not needed by __cinit__ they can simply be
omitted. This saves on argument-parsing code, especially as **kwds needs
to construct an empty dictionary each time. Also note that __cinit__ is
called on PY_NEW, so the savings here is really nice. (Essentially,
{{{__cinit__(self)}}} is implicitly {{{__cinit__(self, *args, **kwds)}}}
where *args and **kwds are not parsed because they're not needed.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6590#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---