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.
Find the code for my tips here: GitHub.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.