This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Leonardofreua
Recipients Leonardofreua
Date 2021-07-21.19:07:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626894458.82.0.833124063655.issue44701@roundup.psfhosted.org>
In-reply-to
Content
Would it be interesting to create a @deprecated decorator to avoid adding warnings.warn("deprecation message", DeprecationWarning, stacklevel=2) in methods body?

Using the decorator approach to indicate depreciation would make the methods cleaner (leaving only their responsibilities in the body) and would be easier to identify, as the cue would be close to the method signature and not mixed with the logic inside the body.

If everyone agrees, I could submit a PR (as a draft) for us to evaluate this functionality.
History
Date User Action Args
2021-07-21 19:07:38Leonardofreuasetrecipients: + Leonardofreua
2021-07-21 19:07:38Leonardofreuasetmessageid: <1626894458.82.0.833124063655.issue44701@roundup.psfhosted.org>
2021-07-21 19:07:38Leonardofreualinkissue44701 messages
2021-07-21 19:07:38Leonardofreuacreate