Deprecator provides a decorator to easily depreate old code.
Project description
- Version:
- 0.1 - Initial release.
What is Deprecator?
Deprecator is a decorator which helps you to document, and warn users of deprecations.
Usage:
from deprecator import deprecate def bar(): print("hello") @deprecate(bar) def foo(): print("hello")
When called, foo would print:
DeprecationWarning: foo is deprecated; use bar instead.
hello
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
deprecator-0.1.zip
(2.4 kB
view hashes)
deprecator-0.1.tar.gz
(1.7 kB
view hashes)