Simon Willison 12/9/2025

Deprecations via warnings don’t work for Python libraries

Read Original

The article discusses the failure of DeprecationWarning as a tool for API deprecation in Python libraries, using the recent urllib3 2.6.0 release as a case study. It explains how major downstream projects missed the warnings, forcing a rollback, and explores alternative practices like running test suites with `-Wonce::DeprecationWarning`.

Deprecations via warnings don’t work for Python libraries

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser