• da-woods's avatar
    Warn when cyfunction.__[kw]defaults__ is changed (GH-4121) · 98fc9f1a
    da-woods authored
    * Warn when cyfunction.__[kw]defaults__ is changed
    
    Cython can't make use of these new defaults so it seems sensible
    to alert the user (even if we're choosing to allow the assignment
    for compatibility reasons).
    
    I know the warning mechanism is somewhat heavy. I think this is
    OK because it's unlikely that users will be repeatedly assigning
    to these attributes in a time-critical loop.
    
    Doesn't fix https://github.com/cython/cython/issues/2650, but hopefully alerts users to it.
    98fc9f1a
CythonFunction.c 57.3 KB