You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not use reserved Python keywords as variable names #4152
I wrote some times ago a decorator for handling the deprecation of function's argument name without backward compatibility break.
Such mechanism can be used to clean the codebase without any hurt for the user.
Activity
rfezzani commentedon Sep 12, 2019
Using
I found:
filterinskimage/transform/radon_transform.pysliceused inskimage/measure/_regionprops.pyminandmaxinskimage/restoration/_denoise.pyinputinskimage/measure/_label.pyI wrote some times ago a decorator for handling the deprecation of function's argument name without backward compatibility break.
Such mechanism can be used to clean the codebase without any hurt for the user.
rfezzani commentedon Sep 13, 2019
I wrote the PR #4158 to demonstrate how this issue can be managed using a decorator. Let me know if this kind of solution is acceptable or not ;-)
rfezzani commentedon Sep 25, 2019
I also found
nextused inskimage/morphology/greyreconstruct.py😄rfezzani commentedon Jan 22, 2020
Do we consider that
arrayis an acceptable argument name? I found an occurrence ingraph.mcp.route_through_arrayfor example.jni commentedon Jan 23, 2020
I would say yes, array is not reserved.
soupault commentedon Jan 23, 2020