Documentation
Running the following test file
#!/usr/bin/env python3
import atexit
import os
import sys
atexit.register(print, "atexit callback called")
# sys.exit()
os.execl("/usr/bin/true", "true")
does not print a message to the console in Python 3.14, but os.exec*() is not included in the list of cases where atexit functions are not called. The atexit module documentation should be updated to also mention os.exec*().
Linked PRs
Documentation
Running the following test file
does not print a message to the console in Python 3.14, but
os.exec*()is not included in the list of cases whereatexitfunctions are not called. Theatexitmodule documentation should be updated to also mentionos.exec*().Linked PRs
atexitfunctions are not called whenos.exec*()is called #149395