PEP 669: Clarifications (#2758)

This commit is contained in:
Mark Shannon 2022-08-11 15:27:05 +01:00 committed by GitHub
parent 9aa0775867
commit 738a01cb30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -272,6 +272,14 @@ Attributes of the ``sys.monitoring`` namespace
* ``def restart_events()->None`` * ``def restart_events()->None``
* ``DISABLE: object`` * ``DISABLE: object``
Access to "debug only" features
-------------------------------
Some features of the standard library are not accessible to normal code,
but are accessible to debuggers. For example, setting local variables, or
the line number.
These features will be available to callback functions.
Backwards Compatibility Backwards Compatibility
======================= =======================
@ -292,8 +300,9 @@ will raise an exception.
respectively, so can be used along side this PEP. respectively, so can be used along side this PEP.
This makes ``sys.settrace`` and ``sys.setprofile`` incompatible with :pep:`523`. This makes ``sys.settrace`` and ``sys.setprofile`` incompatible with :pep:`523`.
Arguably, they already were as the author know of any PEP 523 plugin that support Arguably, they already were as the author does not know of any PEP 523 plugin
``sys.settrace`` or ``sys.setprofile`` correctly. This PEP merely formalizes that. that supports ``sys.settrace`` or ``sys.setprofile`` correctly.
This PEP merely formalizes that.
Performance Performance
----------- -----------