sys.monitoring — Execution event monitoring — Python 3.16.0a0 documentation

docs.python.org

Tin mới

sys — System-specific parameters and functions

sysconfig — Provide access to Python’s configuration information

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Python Runtime Services

ModuleNotFoundError

sys.monitoring is a namespace within the sys module, not an independent module, and import sys.monitoring would fail with a ModuleNotFoundError. Instead, simply import sys and then use sys.monitoring.

Per code object events¶

Events can also be controlled on a per code object basis. The functions defined below which accept a types.CodeType should be prepared to accept a look-alike object from functions which are not defined in Python (see Mon

Per code object events¶

Events can also be controlled on a per code object basis. The functions defined below which accept a types.CodeType should be prepared to accept a look-alike object from functions which are not defined in Python (see Mon

collections.abc.Callable