PEP 669: minor clarifications (#2799)

This commit is contained in:
Mark Shannon 2022-09-21 11:39:31 +01:00 committed by GitHub
parent 8297df43bb
commit 94cce31230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,8 @@ Activating events and registering callback functions are independent of each oth
Both registering callbacks and activating events are done on a per-tool basis.
It is possible to have multiple tools that respond to different sets of events.
Note that, unlike ``sys.settrace()``, events and callbacks are per interpreter, not per thread.
Events
------
@ -319,7 +321,7 @@ performance. Experiments show between 1 and 2% speedup from not supporting
The performance of ``sys.settrace()`` will be worse.
The performance of ``sys.setprofile()`` should be better.
However, by the tools relying on ``sys.settrace()`` and ``sys.setprofile()``
However, tools relying on ``sys.settrace()`` and ``sys.setprofile()``
can be made a lot faster by using the API provided by this PEP.
If a small set of events are active, e.g. for a debugger, then the overhead