atagar added a comment.
Thanks Xqt! Yesterday I finished evaluating all our deprecations prior to the end of 2019, removing FutureWarnings and changing DeprecationWarnings to FutureWarnings. In retrospect I should've discussed it here before digging in. Sorry about that. > They will be ecalated to a FutureWarning usually after 5 years Could we please make this two years instead? Five is an exceedingly long time to keep our deprecations silent (DeprecationWarnings don't provide any practical value from what I can tell). If two years is acceptable I'll implement a test that tells us when deprecated code can be transitioned to a FutureWarning and FutureWarnings can be removed. > Don't know what is the best way finally. Agreed. Backward compatibility is a balancing act. Java and Ruby exemplify two extremes... - Java offers infinite backward compatibility, but that has led to a painfully cluttered language. - Ruby drops backward compatibility every other release, which makes code support an onerous treadmill. Either extreme is problematic. Personally I used symantic versioning <https://stem.torproject.org/change_log.html#versioning> within tor, but in retrospect that leaned too much toward backward compatibility. We're on the same page about the tradeoffs here. :) If we'd like to do the two stage deprecation you describe (DeprecationWarning => FutureWarning => Removal) we need to track both dates as discussed on CR 693589 <https://gerrit.wikimedia.org/r/c/pywikibot/core/+/693589>. Would you mind if I add a 'future_warning_since' attribute to our deprecation helpers? TASK DETAIL https://phabricator.wikimedia.org/T281202 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: atagar Cc: Xqt, Aklapper, pywikibot-bugs-list, atagar, Shalomori123, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
