cpython/Lib
Sam Gross 60e105c1c1
gh-113964: Don't prevent new threads until all non-daemon threads exit (#116677)
Starting in Python 3.12, we prevented calling fork() and starting new threads
during interpreter finalization (shutdown). This has led to a number of
regressions and flaky tests. We should not prevent starting new threads
(or `fork()`) until all non-daemon threads exit and finalization starts in
earnest.

This changes the checks to use `_PyInterpreterState_GetFinalizing(interp)`,
which is set immediately before terminating non-daemon threads.
2024-03-19 14:40:20 -04:00
..
__phello__
asyncio gh-113538: Add asycio.Server.{close,abort}_clients (redo) (#116784) 2024-03-18 13:15:53 -07:00
collections gh-116485: Fixed the typo (#116486) 2024-03-08 08:04:50 +00:00
concurrent
ctypes gh-114099 - Add iOS framework loading machinery. (GH-116454) 2024-03-19 08:36:19 -04:00
curses
dbm
email gh-76511: Fix email.Message.as_string() for non-ASCII message with ASCII charset (GH-116125) 2024-03-05 17:49:01 +02:00
encodings gh-85287: Change codecs to raise precise UnicodeEncodeError and UnicodeDecodeError (#113674) 2024-03-17 04:58:42 +00:00
ensurepip
html
http
idlelib
importlib gh-114099 - Add iOS framework loading machinery. (GH-116454) 2024-03-19 08:36:19 -04:00
json
logging gh-90535: Fix support of interval>1 in logging.TimedRotatingFileHandler (GH-116220) 2024-03-16 12:29:42 +02:00
multiprocessing gh-71052: Change Android's sys.platform from "linux" to "android" 2024-03-11 19:25:39 +00:00
pathlib
pydoc_data Python 3.13.0a5 2024-03-12 21:11:08 +01:00
re
site-packages
sqlite3
sysconfig
test gh-113964: Don't prevent new threads until all non-daemon threads exit (#116677) 2024-03-19 14:40:20 -04:00
tkinter gh-116484: Fix collisions between Checkbutton and ttk.Checkbutton default names (GH-116495) 2024-03-16 13:31:19 +02:00
tomllib
turtledemo
unittest gh-75988: Fix issues with autospec ignoring wrapped object (#115223) 2024-03-08 19:14:32 +00:00
urllib gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) 2024-03-16 12:36:05 +02:00
venv
wsgiref
xml
xmlrpc
zipfile gh-106531: Refresh zipfile._path with zipp 3.18. (#116835) 2024-03-14 21:53:50 +00:00
zoneinfo
__future__.py
__hello__.py
_aix_support.py
_collections_abc.py
_compat_pickle.py
_compression.py
_markupbase.py
_opcode_metadata.py gh-116381: Remove bad specializations, add fail stats (GH-116464) 2024-03-08 00:21:21 +08:00
_osx_support.py
_py_abc.py
_pydatetime.py
_pydecimal.py
_pyio.py
_pylong.py
_sitebuiltins.py
_strptime.py
_threading_local.py
_weakrefset.py
abc.py
antigravity.py
argparse.py
ast.py
base64.py
bdb.py
bisect.py
bz2.py
calendar.py
cmd.py
code.py
codecs.py
codeop.py
colorsys.py
compileall.py
configparser.py gh-116957: configparser: Do post-process values after DuplicateOptionError (GH-116958) 2024-03-19 11:59:08 +02:00
contextlib.py
contextvars.py
copy.py
copyreg.py
cProfile.py
csv.py
dataclasses.py gh-116647: Fix recursive child in dataclasses (#116790) 2024-03-19 08:58:40 -06:00
datetime.py
decimal.py
difflib.py
dis.py
doctest.py
enum.py gh-116600: [Enum] fix global Flag repr (GH-116615) 2024-03-11 15:41:53 -07:00
filecmp.py gh-57141: Add dircmp shallow option (GH-109499) 2024-03-04 17:27:43 +00:00
fileinput.py
fnmatch.py
fractions.py
ftplib.py
functools.py
genericpath.py
getopt.py
getpass.py
gettext.py
glob.py GH-116377: Stop raising ValueError from glob.translate(). (#116378) 2024-03-17 17:09:35 +00:00
graphlib.py
gzip.py
hashlib.py
heapq.py
hmac.py
imaplib.py
inspect.py gh-114099 - Add iOS framework loading machinery. (GH-116454) 2024-03-19 08:36:19 -04:00
io.py
ipaddress.py GH-65056: Improve the IP address' is_global/is_private documentation (GH-113186) 2024-03-18 13:57:00 +01:00
keyword.py
linecache.py gh-71765: Fix inspect.getsource() on empty file (GH-20809) 2024-03-18 16:13:02 +01:00
locale.py
lzma.py
mailbox.py
mimetypes.py
modulefinder.py gh-114099 - Add iOS framework loading machinery. (GH-116454) 2024-03-19 08:36:19 -04:00
netrc.py
ntpath.py
nturl2path.py
numbers.py
opcode.py gh-116381: Specialize CONTAINS_OP (GH-116385) 2024-03-07 03:30:11 +08:00
operator.py
optparse.py
os.py gh-116401: Fix blocking os.fwalk() and shutil.rmtree() on opening a named pipe (GH-116421) 2024-03-13 11:40:28 +02:00
pdb.py gh-90095: Ignore empty lines and comments in .pdbrc (#116834) 2024-03-15 09:36:04 +00:00
pickle.py
pickletools.py
pkgutil.py
platform.py gh-116493: Remove old Python 2.x _winreg imports from platform.py (GH-116494) 2024-03-08 12:42:21 +00:00
plistlib.py
poplib.py
posixpath.py
pprint.py
profile.py
pstats.py
pty.py
py_compile.py
pyclbr.py
pydoc.py gh-116143: Fix race condition in pydoc _start_server (#116144) 2024-03-06 07:39:51 -07:00
queue.py gh-96471: Add ShutDown to queue.py '__all__' (#116699) 2024-03-13 07:21:30 +00:00
quopri.py
random.py
reprlib.py
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py
shelve.py
shlex.py
shutil.py gh-116401: Fix blocking os.fwalk() and shutil.rmtree() on opening a named pipe (GH-116421) 2024-03-13 11:40:28 +02:00
signal.py
site.py
smtplib.py
socket.py
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py
ssl.py gh-107361: strengthen default SSL context flags (#112389) 2024-03-06 13:44:58 -08:00
stat.py
statistics.py Minor kde() docstring nit: make presentation order match the function signature (#116876) 2024-03-15 14:02:10 -05:00
string.py
stringprep.py
struct.py
subprocess.py gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) 2024-03-19 14:42:44 +01:00
symtable.py
tabnanny.py
tarfile.py
tempfile.py
textwrap.py
this.py
threading.py gh-114271: Fix race in Thread.join() (#114839) 2024-03-16 13:56:30 +01:00
timeit.py
token.py
tokenize.py
trace.py
traceback.py
tracemalloc.py
tty.py
turtle.py
types.py
typing.py gh-116127: PEP-705: Add ReadOnly support for TypedDict (#116350) 2024-03-12 07:49:39 -07:00
uuid.py gh-113308: Remove some internal parts of uuid module (#115934) 2024-03-14 13:01:41 +03:00
warnings.py
wave.py
weakref.py
webbrowser.py
zipapp.py
zipimport.py