Mention regular finalizer execution (Nick)

This commit is contained in:
Antoine Pitrou 2017-09-08 19:11:08 +02:00
parent a8c93a3627
commit 3f7fb2b63f
1 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,12 @@ time, signal handlers are able to set a single flag and/or wake up a
file descriptor for the main program to notice. As for those signal
handlers which raise an exception, they *have* to execute in-thread.
This PEP also does not change the execution of finalization callbacks
when they are called as part of regular reference counting, i.e. when
releasing a visible reference drops an object's reference count to zero.
Since such execution happens at deterministic points in code, it is usually
not a problem.
Internal details
================