Skip to main content

Tools for working with container types, command data operations, and concise exception handling

Project description

The functions update_wrapper and wraps improve on functools.update_wrapper and functools.wraps by persisting information about function signatures. The function get_argspec is similar to inspect.get_argspec, except it first tries to use the metadata provided by update_wrapper.

The function get_callargs is similar to inspect.getcallargs, except that

  • it can access the metadata created by update_wrapper

  • it does not raise when a call is illegal but rather makes a best guess, which makes it suitable for logging and error handling in decorators.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inspectcall-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file inspectcall-0.0.1.tar.gz.

File metadata

File hashes

Hashes for inspectcall-0.0.1.tar.gz
Algorithm Hash digest
SHA256 93e7987c68de6c6a73927816f734c296a932aa84af46d1a53dd0b09865089c06
MD5 3c5f63b0082319d1749df94c38e98f3a
BLAKE2b-256 57907359a37be360a0369b011f76cf0c09df94f61789b04763c640a9594056f0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page