How to warn about class (name) deprecation
Maybe I could make OldClsName a function which emits a warning (to logs) and constructs the NewClsName object from its parameters (using *args and **kvargs) but it doesn’t seem elegant enough (or maybe it is?). Yup, I think that’s pretty standard practice: def OldClsName(*args, **kwargs): from warnings import warn warn(“get with the program!”) return NewClsName(*args, … Read more