Discover more from Daily Dose of Data Science
The Right Way to Roll Out Library Updates in Python
While developing a library, authors may decide to remove some functions/methods/classes. But instantly rolling the update without any prior warning isn't a good practice.
This is because many users may still be using the old methods and they may need time to update their code.
Using the 𝐝𝐞𝐩𝐫𝐞𝐜𝐚𝐭𝐞𝐝 decorator, one can convey a warning to the users about the update. This allows them to update their code before it becomes outdated.
Find more info here: GitHub.
Share this post on LinkedIn: Post Link.
Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new about Python and Data Science every day.
Find the code for my tips here: GitHub.