cpython/Lib
Serhiy Storchaka 6f3c138dfa
gh-108751: Add copy.replace() function (GH-108752)
It creates a modified copy of an object by calling the object's
__replace__() method.

It is a generalization of dataclasses.replace(), named tuple's _replace()
method and replace() methods in various classes, and supports all these
stdlib classes.
2023-09-06 23:55:42 +03:00
..
__phello__
asyncio gh-108903: Remove unneeded `lambda`s from `asyncio` (GH-108904) 2023-09-05 18:11:12 +03:00
collections gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
concurrent gh-107219: Fix concurrent.futures terminate_broken() (#108974) 2023-09-06 15:57:01 +02:00
ctypes gh-105751: test_ctypes avoids "from ctypes import *" (#105768) 2023-06-14 03:34:11 +00:00
curses
dbm
email gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart emails when parsing header only (#107016) 2023-07-23 12:25:18 +02:00
encodings
ensurepip gh-106774: Update bundled pip version to 23.2.1 (#106775) 2023-07-25 10:59:25 +01:00
html
http gh-105626: Change the default return value of `HTTPConnection.get_proxy_response_headers` (#105628) 2023-07-13 23:55:49 -07:00
idlelib IDLE: Condense run.main threading.Thread start. (#106125) 2023-06-27 13:12:56 -04:00
importlib GH-106176, GH-104702: Fix reference leak when importing across multiple threads (#108497) 2023-08-29 09:17:25 +02:00
json Revert "GH-96145: Add AttrDict to JSON module for use with object_hook (#96146)" (#105948) 2023-06-26 20:35:53 +02:00
logging gh-103384: Generalize the regex pattern `BaseConfigurator.INDEX_PATTERN` to allow spaces and non-alphanumeric characters in keys. (GH-103391) 2023-08-25 09:15:26 +01:00
multiprocessing gh-108520: Fix bad fork detection in nested multiprocessing use case (#108568) 2023-08-30 17:07:41 +00:00
pydoc_data
re gh-56166: Deprecate passing confusing positional arguments in re functions (#107778) 2023-08-16 13:35:35 -07:00
site-packages
sqlite3 gh-108590: Revert gh-108657 (commit 400a1cebc) (#108686) 2023-08-30 14:53:10 +00:00
test gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
tkinter gh-72684: Tkinter: provide interface for "tk busy" subcommands (GH-107684) 2023-08-19 14:48:02 +03:00
tomllib
turtledemo
unittest gh-104090: Fix unittest collectedDurations resources leak (#106795) 2023-07-19 12:03:47 +01:00
urllib GH-104554: Add RTSPS support to `urllib/parse.py` (#104605) 2023-06-13 16:45:47 -07:00
venv gh-89427: Set VIRTUAL_ENV_PROMPT even when VIRTUAL_ENV_DISABLE_PROMPT… (GH-106643) 2023-07-13 07:08:33 +01:00
wsgiref
xml gh-50002: xml.dom.minidom now preserves whitespaces in attributes (GH-107947) 2023-08-23 15:23:41 +03:00
xmlrpc xmlrpc.client uses datetime.datetime.isoformat() (#105741) 2023-06-14 17:00:40 +02:00
zipfile gh-106752: Sync with zipp 3.16.2 (#106757) 2023-07-15 09:21:17 -04:00
zoneinfo
__future__.py
__hello__.py
_aix_support.py
_collections_abc.py
_compat_pickle.py gh-75552: Remove deprecated tkinter.tix module (GH-104902) 2023-05-27 12:34:19 -05:00
_compression.py
_markupbase.py
_opcode_metadata.py gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py (#107971) 2023-08-16 22:25:18 +00:00
_osx_support.py
_py_abc.py
_pydatetime.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
_pydecimal.py
_pyio.py gh-62948: IOBase finalizer logs close() errors (#105104) 2023-05-31 11:41:19 +00:00
_pylong.py
_sitebuiltins.py
_strptime.py
_threading_local.py
_weakrefset.py
abc.py
antigravity.py
argparse.py gh-103558: Add coverage tests for argparse (#103570) 2023-06-05 00:14:00 -07:00
ast.py gh-108469: Update ast.unparse for unescaped quote support from PEP701 [3.12] (#108553) 2023-09-05 21:01:23 +01:00
base64.py
bdb.py
bisect.py
bz2.py
cProfile.py
calendar.py gh-69714: Make `calendar` module fully tested (#93655) 2023-07-22 15:20:40 +02:00
cmd.py
code.py
codecs.py
codeop.py Remove dead code in codeop.py (#105263) 2023-06-05 18:14:10 +02:00
colorsys.py gh-106498: Revert incorrect colorsys.rgb_to_hls change (#106627) 2023-07-11 11:07:20 -04:00
compileall.py
configparser.py Fix typo in configparser module docstring (#105652) 2023-06-11 15:06:42 +01:00
contextlib.py gh-102799: use sys.exception() instead of sys.exc_info() in contextlib (#103311) 2023-07-20 14:41:32 +05:30
contextvars.py
copy.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
copyreg.py
csv.py
dataclasses.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
datetime.py
decimal.py
difflib.py
dis.py gh-107932: Fix dis module for bytecode that does not have an associated source line (GH-107988) 2023-08-25 09:31:26 +01:00
doctest.py gh-108794: doctest counts skipped tests (#108795) 2023-09-02 16:42:07 +02:00
enum.py gh-108682: [Enum] raise TypeError if super().__new__ called in custom __new__ (GH-108704) 2023-08-31 12:45:12 -07:00
filecmp.py
fileinput.py
fnmatch.py
fractions.py
ftplib.py
functools.py gh-107995: Fix doctest collection of functools.cached_property objects (#107996) 2023-08-18 15:44:38 +00:00
genericpath.py
getopt.py
getpass.py
gettext.py gh-62519: Make pgettext search plurals when translation is not found (#107118) 2023-07-23 16:08:28 +02:00
glob.py
graphlib.py bpo-45359: Support TopologicalSorter type subscript (GH-28714) 2021-12-08 20:52:57 +02:00
gzip.py gh-108111: Flush gzip write buffer before seeking, fixing bad writes (#108341) 2023-08-24 10:23:01 +02:00
hashlib.py
heapq.py
hmac.py
imaplib.py
inspect.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
io.py
ipaddress.py gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (#29345) 2023-07-31 14:33:26 +00:00
keyword.py
linecache.py
locale.py gh-104783: locale.getlocale() calls sys.getfilesystemencoding() (#105401) 2023-06-06 18:19:40 +00:00
lzma.py
mailbox.py
mimetypes.py
modulefinder.py
netrc.py
ntpath.py gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248) 2023-08-22 00:16:02 +00:00
nturl2path.py
numbers.py
opcode.py gh-105481: remove regen-opcode. Generated _PyOpcode_Caches in regen-cases. (#108367) 2023-08-23 18:39:00 +01:00
operator.py
optparse.py
os.py gh-106046: Improve error message from `os.fspath` if `__fspath__` is set to `None` (#106082) 2023-06-26 00:06:12 +01:00
pathlib.py GH-78722: Raise exceptions from `pathlib.Path.iterdir()` without delay. (#107320) 2023-09-02 16:08:03 +01:00
pdb.py gh-106670: Fix Pdb handling of chained Exceptions with no stacks. (#108865) 2023-09-06 09:41:56 +00:00
pickle.py
pickletools.py
pkgutil.py
platform.py
plistlib.py
poplib.py gh-106200: Remove unused imports (#106201) 2023-06-28 11:55:41 +00:00
posixpath.py
pprint.py
profile.py
pstats.py
pty.py
py_compile.py
pyclbr.py
pydoc.py gh-107782: Pydoc: fall back to __text_signature__ if inspect.signature() fails (GH-107786) 2023-08-11 20:51:36 +03:00
queue.py
quopri.py
random.py
reprlib.py gh-107409: set `__wrapped__` attribute in `reprlib.recursive_repr` (#107410) 2023-08-10 06:55:49 +00:00
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py gh-106751: Optimize _PolllikeSelector for many iteration case (gh-106884) 2023-07-20 09:53:11 +09:00
shelve.py gh-107089: Improve Shelf.clear method performance (gh-107090) 2023-07-29 09:08:11 +09:00
shlex.py
shutil.py gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802) 2023-08-16 10:00:03 +03:00
signal.py
site.py
smtplib.py gh-65495: Use lowercase `mail from` and `rcpt to` in `smtplib.SMTP` (#107019) 2023-07-22 16:46:59 +02:00
socket.py
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py
ssl.py gh-108342: Break ref cycle in SSLSocket._create() exc (#108344) 2023-08-23 05:26:01 +00:00
stat.py gh-108638: Fix stat.filemode() when _stat is missing (#108639) 2023-08-29 15:46:46 +00:00
statistics.py gh-108322: Optimize statistics.NormalDist.samples() (gh-108324) 2023-08-27 08:59:40 -05:00
string.py
stringprep.py
struct.py
subprocess.py gh-106723: forward -Xfrozen_modules option to spawned process interpreters (#106724) 2023-07-28 05:04:26 +00:00
symtable.py
sysconfig.py gh-106789: avoid importing pprint from sysconfig (#106790) 2023-07-17 10:28:33 +01:00
tabnanny.py
tarfile.py gh-107811: tarfile: treat overflow in UID/GID as failure to set it (#108369) 2023-08-23 20:00:07 +02:00
tempfile.py
textwrap.py gh-107369: optimize textwrap.indent() (#107374) 2023-07-29 06:37:23 +00:00
this.py
threading.py gh-102029: Deprecate passing arguments to `_PyRLock` in `threading` (#102071) 2023-08-17 09:19:07 -07:00
timeit.py gh-105052:update timeit function's description (#105060) 2023-08-27 03:22:27 -04:00
token.py gh-107015: Remove async_hacks from the tokenizer (#107018) 2023-07-26 16:34:15 +01:00
tokenize.py gh-71299: Fix __all__ in tokenize (#105907) 2023-06-19 13:31:57 +02:00
trace.py
traceback.py gh-105292: Add option to make traceback.TracebackException.format_exception_only recurse into exception groups (#105294) 2023-06-06 11:26:18 +02:00
tracemalloc.py
tty.py
turtle.py gh-107805: Fix signatures of module-level generated functions in `turtle` (#107807) 2023-09-01 01:18:15 -07:00
types.py gh-107576: Ensure `__orig_bases__` are our own in `get_original_bases` (#107584) 2023-08-03 14:19:24 +00:00
typing.py gh-105509: Simplify implementation of `typing.Annotated` (#105510) 2023-09-01 13:57:25 -07:00
uuid.py
warnings.py Fix docstring of `warnings._deprecated` to show correct `remove` value (#105178) 2023-06-01 08:07:52 +00:00
wave.py gh-105096: Deprecate wave getmarkers() method (#105098) 2023-05-31 12:09:41 +00:00
weakref.py
webbrowser.py gh-105745: Fix open method of webbrowser.Konqueror (#105746) 2023-06-14 12:29:16 +02:00
zipapp.py gh-104527: zippapp will now avoid appending an archive to itself. (gh-106076) 2023-06-26 10:09:08 +01:00
zipimport.py gh-103200: Fix performance issues with `zipimport.invalidate_caches()` (GH-103208) 2023-07-07 22:02:13 +00:00