Tools for working with container types, command data operations, and concise exception handling
Project description
By using the inspectcall library, calldecorators decorators can make use of call arguments to functions at runtime, and preserves function signature metadata (which is clobbered by most decorators) so that this functionality works even when decorators are stacked.
The error_context decorator uses functionality from tdxutil.exceptions.try_with_lazy_context to wrap a function call in an error handler that can prepend contextual information to an error without affecting the stacktrace. This allows errors raised b low-level code, which may not have enough information to construct error messages indicating what was going on, to be made far more informative.
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 Distribution
File details
Details for the file calldecorators-0.0.1.tar.gz
.
File metadata
- Download URL: calldecorators-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4d34aca91b69af34d770e7504bccdfa310f6a3edca6a2612d2bb18ee35cc6c |
|
MD5 | 4a15f922156d3a5cddcbbf48fd087ba3 |
|
BLAKE2b-256 | 21b2e9fe9227608b8d06093b31b806bc13c9a5db6cfa11525c88ae2e1141f22e |