cpython/Lib
Cody Maloney 5257a3d039
gh-162246: Fix leak when re-initializing BufferedRWPair (#162405)
Calling `BufferedRWPair.__init__()` on an already initialized object
overwrote the reader and writer pointers without releasing the previous
objects. Build the new reader and writer first, then swap them in,
releasing the old writer before the old reader as in
`bufferedrwpair_clear()`.

Make the Python implementation release the old writer before the old
reader too, so pending writes are not lost when both share a raw stream.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:18:07 -08:00
..
__phello__
_pyrepl
asyncio gh-162061: Fix awaited-by links for asyncio.gather() (#162394) 2026-11-22 19:18:55 +01:00
collections
compression
concurrent
ctypes
curses
dbm
email
encodings
ensurepip
html
http
idlelib
importlib
json
logging
multiprocessing
pathlib
profiling
pydoc_data
re
site-packages
sqlite3
string
sysconfig
test gh-162246: Fix leak when re-initializing BufferedRWPair (#162405) 2026-11-22 12:18:07 -08:00
tkinter
tomllib
turtledemo
unittest
urllib gh-162282: Fix remaining quadratic paths in urllib.robotparser (#162442) 2026-11-22 17:04:53 +00:00
venv
wsgiref
xml
xmlrpc
zipfile
zoneinfo
.ruff.toml
__future__.py
__hello__.py
_aix_support.py
_android_support.py
_apple_support.py
_ast_unparse.py
_collections_abc.py
_colorize.py
_compat_pickle.py
_ios_support.py
_markupbase.py
_opcode_metadata.py
_osx_support.py
_py_abc.py
_py_warnings.py
_pybuiltins.py
_pydatetime.py
_pydecimal.py
_pyio.py gh-162246: Fix leak when re-initializing BufferedRWPair (#162405) 2026-11-22 12:18:07 -08:00
_pylong.py
_sitebuiltins.py
_strptime.py
_threading_local.py
_weakrefset.py
abc.py
annotationlib.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
contextlib.py
contextvars.py
copy.py
copyreg.py
cProfile.py
csv.py
dataclasses.py
datetime.py
decimal.py
difflib.py
dis.py
doctest.py
enum.py
filecmp.py
fileinput.py
fnmatch.py
fractions.py
ftplib.py
functools.py
genericpath.py
getopt.py
getpass.py
gettext.py
glob.py
graphlib.py
gzip.py
hashlib.py
heapq.py
hmac.py
imaplib.py
inspect.py
io.py
ipaddress.py
keyword.py
linecache.py
locale.py
lzma.py
mailbox.py
mimetypes.py
modulefinder.py
netrc.py
ntpath.py
nturl2path.py gh-156713: Use the filesystem encoding in nturl2path (GH-156717) 2026-09-13 15:44:46 +03:00
numbers.py
opcode.py
operator.py
optparse.py
os.py
pdb.py
pickle.py
pickletools.py
pkgutil.py
platform.py
plistlib.py
poplib.py
posixpath.py
pprint.py
profile.py
pstats.py
pty.py
py_compile.py
pyclbr.py
pydoc.py
queue.py
quopri.py
random.py
reprlib.py
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py
shelve.py
shlex.py
shutil.py
signal.py
site.py
smtplib.py
socket.py
socketserver.py
ssl.py
stat.py
statistics.py
stringprep.py
struct.py
subprocess.py
symtable.py
tabnanny.py
tarfile.py
tempfile.py
textwrap.py
this.py
threading.py
timeit.py
token.py
tokenize.py
trace.py
traceback.py
tracemalloc.py
tty.py
turtle.py
types.py
typing.py
uuid.py
warnings.py
wave.py
weakref.py
webbrowser.py
zipapp.py
zipimport.py