I have a deprecation-wrapper that allows me to do this:
def oldFunc(x,y):
...
def newFunc(x,y):
...
oldFunc = deprecated(oldFunc, newFunc)
It basically wraps the definition of "oldFunc" with a DeprecationWarning
and some extra messages for code maintainers, and also pr
I have a "deprecation" wrapper that allows me to do this:
def oldFunc(x,y):
...
def newFunc(x,y):
...
oldFunc = deprecated(oldFunc, newFunc)
It basically wraps the definition of "oldFunc" with a DeprecationWarning
and some extra messages for code maintainers, and