[issue44701] Create a @deprecated decorator (annotation)

2021-08-18 Thread Christian Buhtz
Christian Buhtz added the comment: This discussion on python-ideas https://mail.python.org/archives/list/python-id...@python.org/thread/62CTVNQ2GIS4B6WUBX23K4CCCK5MCGYL/ -- nosy: +buhtz ___ Python tracker __

[issue44701] Create a @deprecated decorator (annotation)

2021-07-28 Thread Leonardo Freua
Leonardo Freua added the comment: Ok thanks, I'll do it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44701] Create a @deprecated decorator (annotation)

2021-07-28 Thread Éric Araujo
Éric Araujo added the comment: You should propose this on python-ideas! -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs

[issue44701] Create a @deprecated decorator (annotation)

2021-07-21 Thread Leonardo Freua
New submission from Leonardo Freua : 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