Deprecator provides a decorator to easily depreate old code.
Project description
- Version:
- 0.2 - 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.3.zip
(2.5 kB
view hashes)
deprecator-0.3.tar.gz
(1.7 kB
view hashes)
Built Distributions
Close
Hashes for deprecator-0.3.macosx-10.10-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4245598bfb4e2df5eda5b82dd52ab28fcb41bd9bf6827965e9707d8634e246 |
|
MD5 | edd1bc387d73e74a9f8c5c73a8b883a0 |
|
BLAKE2b-256 | ca3bd3f94aaff84a401e47ed01a115c998da10ba69b5e9e244fd7ccd5657dd20 |
Close
Hashes for deprecator-0.3.macosx-10.10-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd220eb5df6d919fa34d31a649878b72aba18efcd55d6fa57db8c289cbb84f6 |
|
MD5 | b29c68028efe5e2a58acb41a46cebe71 |
|
BLAKE2b-256 | eab2682423fe1b24a5caecfc7449196c56833075510975497cc24fc0e51aa944 |