3 ms·
Perhaps Python itself could worn you that certain constructs are deprecated and will be removed in future versions. And you could 'import something from future
by eru 7y ago
Perhaps Python itself could worn you that certain constructs are deprecated and will be removed in future versions.
And you could 'import something from future' to opt-in to making those warnings errors right now.
- pcr910303 7y agoThat's a pretty good idea, deprecating & warning + providing automatic conversion utilities + using 'future' to make them errors... But that won't happen :-(
- makapuf 7y agoAnd then import from past to remove warnings if you really want to use those constructs without warnings. Next time, feature would be removed or a depreciation warning when used with from past.
- mixmastamyk 7y agoSome deprecation warnings have been enabled for a developers main source files recently. Though not in third-party libraries, which would be frustrating to the end-user. I forget the exact details though.