Re: [Python-ideas] Extend the warnings module with Deprecation utility methods and classes

2018-08-31 Thread Ilya Kulakov
Very nice, thank you. It would be a good start to collect usage patterns like this as seen in the wild for design consideration and test cases. > On Aug 30, 2018, at 10:43 PM, Joshua Harlow wrote: > > And mirrored at https://github.com/openstack/debtcollector >

Re: [Python-ideas] Extend the warnings module with Deprecation utility methods and classes

2018-08-30 Thread Joshua Harlow
If you want, feel free to take some of the code from: https://docs.openstack.org/debtcollector/latest/reference/index.html It was made for a similar purpose (and uses warnings module at its lowest level) and may offer some things that could be in this new warnings module. Code is at: http

[Python-ideas] Extend the warnings module with Deprecation utility methods and classes

2018-08-30 Thread Ilya Kulakov
Sooner or later authors and maintainers of libraries change public interfaces of their creations. Usually one of the two approaches is taken: 1. Outright breaking change 2. Soft deprecation later followed by [1] While [1] is perfectly suitable for libraries with limited audience, [2] is what p