A DeprecationWarning tells users that an interface should no longer be used and points them toward replacement code. It helps a refactoring remain backward-compatible while consumers migrate. section 9.3.2
Warning during an API transition
When replacing book.author_for_display with book.author.for_display, emit `warnings.warn('Use book.author.for_display instead', DeprecationWarning)`. The output identifies the warning and the replacement path. section 9.3.2
Use forwarding as an analogy: old API calls can temporarily route users toward the new location while migration takes place. section 9.3.2
