diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-10-29 19:06:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 19:06:26 +0100 |
commit | b8e3246e8907fc2326473083bc953d11e61bc1e8 (patch) | |
tree | 338c92e71b9981b4b8c03d7d577e3a4b86fbadb2 /.github | |
parent | 60cb628283d51e400b75c502e97f9ef7ba85a59a (diff) | |
download | spack-b8e3246e8907fc2326473083bc953d11e61bc1e8.tar.gz spack-b8e3246e8907fc2326473083bc953d11e61bc1e8.tar.bz2 spack-b8e3246e8907fc2326473083bc953d11e61bc1e8.tar.xz spack-b8e3246e8907fc2326473083bc953d11e61bc1e8.zip |
llnl.util.lang: add classes to help with deprecations (#47279)
* Add a descriptor to have a class level constant
This descriptor helps intercept places where we set a value on instances.
It does not really behave like "const" in C-like languages, but is the
simplest implementation that might still be useful.
* Add a descriptor to deprecate properties/attributes of an object
This descriptor is used as a base class. Derived classes may implement a
factory to return an adaptor to the attribute being deprecated. The
descriptor can either warn, or raise an error, when usage of the deprecated
attribute is intercepted.
---------
Co-authored-by: Harmen Stoppels <me@harmenstoppels.nl>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions