We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080a596 commit d3127cdCopy full SHA for d3127cd
Doc/library/atexit.rst
@@ -45,6 +45,9 @@ internal error is detected, or when :func:`os._exit` is called.
45
This function returns *func*, which makes it possible to use it as a
46
decorator.
47
48
+ The effect of calling :func:`register` from another registered cleanup
49
+ function is undefined.
50
+
51
52
.. function:: unregister(func)
53
@@ -55,6 +58,8 @@ internal error is detected, or when :func:`os._exit` is called.
55
58
comparisons (``==``) are used internally during unregistration, so function
56
59
references do not need to have matching identities.
57
60
61
+ The effect of calling :func:`unregister` from a registered cleanup function
62
+ is undefined.
63
64
.. seealso::
65
0 commit comments