库
bpo-45679 [https://bugs.python.org/issue?@action=redirect&bpo=45679]: Fix caching of multi-value
typing.Literal
.Literal[True, 2]
is no longer equal toLiteral[1, 2]
.bpo-42064 [https://bugs.python.org/issue?@action=redirect&bpo=42064]: Convert
sqlite3
to multiphase initialisation (PEP 489). Patches by Erlend E. Aasland.bpo-45438 [https://bugs.python.org/issue?@action=redirect&bpo=45438]: Fix typing.Signature string representation for generic builtin types.
bpo-45613 [https://bugs.python.org/issue?@action=redirect&bpo=45613]:
sqlite3
now setssqlite3.threadsafety
based on the default threading mode the underlying SQLite library has been compiled with. Patch by Erlend E. Aasland.bpo-45574 [https://bugs.python.org/issue?@action=redirect&bpo=45574]: Fix warning about
print_escape
being unused.bpo-45581 [https://bugs.python.org/issue?@action=redirect&bpo=45581]:
sqlite3.connect()
now correctly raisesMemoryError
if the underlying SQLite API signals memory error. Patch by Erlend E. Aasland.bpo-45557 [https://bugs.python.org/issue?@action=redirect&bpo=45557]:
pprint.pprint()
now handles underscore_numbers correctly. Previously it was always setting it toFalse
.bpo-44019 [https://bugs.python.org/issue?@action=redirect&bpo=44019]: Add
operator.call()
tooperator.__all__
. Patch by Kreusada.bpo-42174 [https://bugs.python.org/issue?@action=redirect&bpo=42174]:
shutil.get_terminal_size()
now falls back to sane values if the column or line count are 0.bpo-35673 [https://bugs.python.org/issue?@action=redirect&bpo=35673]: Improve the introspectability of the
__loader__
attribute for namespace packages.importlib.machinery.NamespaceLoader
is now public, and implements theimportlib.abc.InspectLoader
interface._NamespaceLoader
is kept for backward compatibility.bpo-45515 [https://bugs.python.org/issue?@action=redirect&bpo=45515]: Add references to
zoneinfo
in thedatetime
documentation, mostly replacing outdated references todateutil.tz
. Change by Paul Ganssle.bpo-45475 [https://bugs.python.org/issue?@action=redirect&bpo=45475]: Reverted optimization of iterating
gzip.GzipFile
,bz2.BZ2File
, andlzma.LZMAFile
(see bpo-43787 [https://bugs.python.org/issue?@action=redirect&bpo=43787]) because it caused regression when user iterate them without having reference of them. Patch by Inada Naoki.bpo-45489 [https://bugs.python.org/issue?@action=redirect&bpo=45489]: Update
ForwardRef
to support|
operator. Patch by Donghee Na.bpo-42222 [https://bugs.python.org/issue?@action=redirect&bpo=42222]: Removed deprecated support for float arguments in randrange().
bpo-45428 [https://bugs.python.org/issue?@action=redirect&bpo=45428]: Fix a regression in py_compile when reading filenames from standard input.
bpo-45467 [https://bugs.python.org/issue?@action=redirect&bpo=45467]: Fix incremental decoder and stream reader in the "raw-unicode-escape" codec. Previously they failed if the escape sequence was split.
bpo-45461 [https://bugs.python.org/issue?@action=redirect&bpo=45461]: Fix incremental decoder and stream reader in the "unicode-escape" codec. Previously they failed if the escape sequence was split.
bpo-45239 [https://bugs.python.org/issue?@action=redirect&bpo=45239]: Fixed
email.utils.parsedate_tz()
crashing withUnboundLocalError
on certain invalid input instead of returningNone
. Patch by Ben Hoyt.bpo-45417 [https://bugs.python.org/issue?@action=redirect&bpo=45417]: Fix quadratic behaviour in the enum module: Creation of enum classes with a lot of entries was quadratic.
bpo-45249 [https://bugs.python.org/issue?@action=redirect&bpo=45249]: Fix the behaviour of
traceback.print_exc()
when displaying the caret when theend_offset
in the exception is set to 0. Patch by Pablo Galindobpo-45416 [https://bugs.python.org/issue?@action=redirect&bpo=45416]: Fix use of
asyncio.Condition
with explicitasyncio.Lock
objects, which was a regression due to removal of explicit loop arguments. Patch by Joongi Kim.bpo-20028 [https://bugs.python.org/issue?@action=redirect&bpo=20028]: Empty escapechar/quotechar is not allowed when initializing
csv.Dialect
. Patch by Vajrasky Kok and Donghee Na.bpo-44904 [https://bugs.python.org/issue?@action=redirect&bpo=44904]: Fix bug in the
doctest
module that caused it to fail if a docstring included an example with aclassmethod
property
. Patch by Alex Waygood.bpo-45406 [https://bugs.python.org/issue?@action=redirect&bpo=45406]: Make
inspect.getmodule()
catchFileNotFoundError
raised byinspect.getabsfile()
, and returnNone
to indicate that the module could not be determined.bpo-45411 [https://bugs.python.org/issue?@action=redirect&bpo=45411]: Add extensions for files containing subtitles - .srt & .vtt - to the mimetypes.py module.
bpo-10716 [https://bugs.python.org/issue?@action=redirect&bpo=10716]: Migrated pydoc to HTML5 (without changing the look of it). Side effect is to update xmlrpc's
ServerHTMLDoc
which now uses the CSS too. cgitb now relies less on pydoc (as it can't use the CSS file).bpo-27580 [https://bugs.python.org/issue?@action=redirect&bpo=27580]: Add support of null characters in
csv
.bpo-45262 [https://bugs.python.org/issue?@action=redirect&bpo=45262]: Prevent use-after-free in asyncio. Make sure the cached running loop holder gets cleared on dealloc to prevent use-after-free in get_running_loop
bpo-45386 [https://bugs.python.org/issue?@action=redirect&bpo=45386]: Make
xmlrpc.client
more robust to C runtimes where the underlying Cstrftime
function results in aValueError
when testing for year formatting options.bpo-20028 [https://bugs.python.org/issue?@action=redirect&bpo=20028]: Improve error message of
csv.Dialect
when initializing. Patch by Vajrasky Kok and Donghee Na.bpo-45343 [https://bugs.python.org/issue?@action=redirect&bpo=45343]: Update bundled pip to 21.2.4 and setuptools to 58.1.0
bpo-45328 [https://bugs.python.org/issue?@action=redirect&bpo=45328]: Fixed
http.client.HTTPConnection
to work properly in OSs that don't support theTCP_NODELAY
socket option.bpo-45243 [https://bugs.python.org/issue?@action=redirect&bpo=45243]: Add
setlimit()
andgetlimit()
tosqlite3.Connection
for setting and getting SQLite limits by connection basis. Patch by Erlend E. Aasland.bpo-45320 [https://bugs.python.org/issue?@action=redirect&bpo=45320]: Removed from the
inspect
module:- the
getargspec
function, deprecated since Python 3.0; - use
inspect.signature()
orinspect.getfullargspec()
instead.
- the
the
formatargspec
function, deprecated since Python 3.5; use theinspect.signature()
function andSignature
object directly.the undocumented
Signature.from_builtin
andSignature.from_function
functions, deprecated since Python 3.5; use theSignature.from_callable()
method instead.
Patch by Hugo van Kemenade.
- bpo-45192 [https://bugs.python.org/issue?@action=redirect&bpo=45192]: Fix the
tempfile._infer_return_type
function so that thedir
argument of thetempfile
functions accepts an object implementing theos.PathLike
protocol.
Patch by Kyungmin Lee.
bpo-45160 [https://bugs.python.org/issue?@action=redirect&bpo=45160]: When tracing a tkinter variable used by a ttk OptionMenu, callbacks are no longer made twice.
bpo-25625 [https://bugs.python.org/issue?@action=redirect&bpo=25625]: Added non parallel-safe
chdir()
context manager to change the current working directory and then restore it on exit. Simple wrapper aroundchdir()
.bpo-24139 [https://bugs.python.org/issue?@action=redirect&bpo=24139]: Add support for SQLite extended result codes in
sqlite3.Error
. Patch by Erlend E. Aasland.bpo-24444 [https://bugs.python.org/issue?@action=redirect&bpo=24444]: Fixed an error raised in
argparse
help display when help for an option is set to 1+ blank spaces or when choices arg is an empty container.bpo-44547 [https://bugs.python.org/issue?@action=redirect&bpo=44547]: Implement
Fraction.__int__
, so that afractions.Fraction
instancef
passes anisinstance(f, typing.SupportsInt)
check.bpo-40321 [https://bugs.python.org/issue?@action=redirect&bpo=40321]: Adds support for HTTP 308 redirects to
urllib
. See RFC 7538 [https://datatracker.ietf.org/doc/html/rfc7538.html] for details. Patch by Jochem Schulenklopper.bpo-41374 [https://bugs.python.org/issue?@action=redirect&bpo=41374]: Ensure that
socket.TCP_*
constants are exposed on Cygwin 3.1.6 and greater.bpo-35970 [https://bugs.python.org/issue?@action=redirect&bpo=35970]: Add help flag to the base64 module's command line interface. Patch contributed by Robert Kuska.
文档
bpo-45726 [https://bugs.python.org/issue?@action=redirect&bpo=45726]: Improve documentation for
functools.singledispatch()
andfunctools.singledispatchmethod
.bpo-45680 [https://bugs.python.org/issue?@action=redirect&bpo=45680]: Amend the docs on
GenericAlias
objects to clarify that non-container classes can also implement__class_getitem__
. Patch contributed by Alex Waygood.bpo-45618 [https://bugs.python.org/issue?@action=redirect&bpo=45618]: Update Sphinx version used to build the documentation to 4.2.0. Patch by Maciej Olko.
bpo-45655 [https://bugs.python.org/issue?@action=redirect&bpo=45655]: Add a new "relevant PEPs" section to the top of the documentation for the
typing
module. Patch by Alex Waygood.bpo-45604 [https://bugs.python.org/issue?@action=redirect&bpo=45604]: Add
level
argument tomultiprocessing.log_to_stderr
function docs.bpo-45516 [https://bugs.python.org/issue?@action=redirect&bpo=45516]: Add protocol description to the
importlib.abc.TraversableResources
documentation.bpo-45464 [https://bugs.python.org/issue?@action=redirect&bpo=45464]: Mention in the documentation of Builtin Exceptions that inheriting from multiple exception types in a single subclass is not recommended due to possible memory layout incompatibility.
bpo-45449 [https://bugs.python.org/issue?@action=redirect&bpo=45449]: Add note about PEP 585 [https://peps.python.org/pep-0585/] in
collections.abc
.bpo-45516 [https://bugs.python.org/issue?@action=redirect&bpo=45516]: Add protocol description to the
importlib.abc.Traversable
documentation.bpo-20692 [https://bugs.python.org/issue?@action=redirect&bpo=20692]: Add Programming FAQ entry explaining that int literal attribute access requires either a space after or parentheses around the literal.
测试
bpo-45678 [https://bugs.python.org/issue?@action=redirect&bpo=45678]: Add tests for scenarios in which
functools.singledispatchmethod
is stacked on top of a method that has already been wrapped by two other decorators. Patch by Alex Waygood.bpo-45578 [https://bugs.python.org/issue?@action=redirect&bpo=45578]: Add tests for
dis.distb()
bpo-45678 [https://bugs.python.org/issue?@action=redirect&bpo=45678]: Add tests to ensure that
functools.singledispatchmethod
correctly wraps the attributes of the target function.bpo-45668 [https://bugs.python.org/issue?@action=redirect&bpo=45668]: PGO tests now pass when Python is built without test extension modules.
bpo-45577 [https://bugs.python.org/issue?@action=redirect&bpo=45577]: Add subtests for all
pickle
protocols intest_zoneinfo
.bpo-45566 [https://bugs.python.org/issue?@action=redirect&bpo=45566]: Fix
testfrozenpickle
intest_dataclasses
to check allpickle
versions.bpo-43592 [https://bugs.python.org/issue?@action=redirect&bpo=43592]:
test.libregrtest
now raises the soft resource limit for the maximum number of file descriptors when the default is too low for our test suite as was often the case on macOS.bpo-39679 [https://bugs.python.org/issue?@action=redirect&bpo=39679]: Add more test cases for
@functools.singledispatchmethod
when combined with@classmethod
or@staticmethod
.bpo-45410 [https://bugs.python.org/issue?@action=redirect&bpo=45410]: When libregrtest spawns a worker process, stderr is now written into stdout to keep messages order. Use a single pipe for stdout and stderr, rather than two pipes. Previously, messages were out of order which made analysis of buildbot logs harder Patch by Victor Stinner.
bpo-45402 [https://bugs.python.org/issue?@action=redirect&bpo=45402]: Fix test_tools.test_sundry() when Python is built out of tree: fix how the freeze_modules.py tool locates the freezemodule program. Patch by Victor Stinner.
bpo-45403 [https://bugs.python.org/issue?@action=redirect&bpo=45403]: Fix test_sys.test_stdlib_dir() when Python is built outside the source tree: compare normalized paths. Patch by Victor Stinner.
bpo-45400 [https://bugs.python.org/issue?@action=redirect&bpo=45400]: Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals() of test_exceptions if a directory name contains "a1" (like "Python3.11.0a1"): use a stricter regular expression. Patch by Victor Stinner.
bpo-10572 [https://bugs.python.org/issue?@action=redirect&bpo=10572]: Rename
sqlite3
tests fromtest_sqlite
totest_sqlite3
, and relocate them toLib/test/test_sqlite3
. Patch by Erlend E. Aasland.
构建
bpo-43158 [https://bugs.python.org/issue?@action=redirect&bpo=43158]:
setup.py
now uses values from configure script to build the_uuid
extension module. Configure now detects util-linux'slibuuid
, too.bpo-45666 [https://bugs.python.org/issue?@action=redirect&bpo=45666]: Fix warning of
swprintf
and%s
usage in_testembed.c
bpo-45548 [https://bugs.python.org/issue?@action=redirect&bpo=45548]:
Modules/Setup
andModules/makesetup
have been improved. TheSetup
file now contains working rules for all extensions. Outdated comments have been removed. Rules defined bymakesetup
track dependencies correctly.bpo-45548 [https://bugs.python.org/issue?@action=redirect&bpo=45548]: The
math
andcmath
implementation now require a C99 compatiblelibm
and no longer ship with workarounds for missing acosh, asinh, atanh, expm1, and log1p functions.bpo-45595 [https://bugs.python.org/issue?@action=redirect&bpo=45595]:
setup.py
andmakesetup
now track build dependencies on all Python header files and module specific header files.bpo-45571 [https://bugs.python.org/issue?@action=redirect&bpo=45571]:
Modules/Setup
now usePY_CFLAGS_NODIST
instead ofPY_CFLAGS
to compile shared modules.bpo-45570 [https://bugs.python.org/issue?@action=redirect&bpo=45570]:
pyexpat
and_elementtree
no longer define obsolete macrosHAVE_EXPAT_CONFIG_H
andUSE_PYEXPAT_CAPI
.XML_POOR_ENTROPY
is now defined inexpat_config.h
.bpo-43974 [https://bugs.python.org/issue?@action=redirect&bpo=43974]:
setup.py
no longer definesPy_BUILD_CORE_MODULE
. Instead every module, that uses the internal API, defines the macro.bpo-45548 [https://bugs.python.org/issue?@action=redirect&bpo=45548]: Fill in missing entries in Modules/Setup.
bpo-45532 [https://bugs.python.org/issue?@action=redirect&bpo=45532]: Update
sys.version
to usemain
as fallback information. Patch by Jeong YunWon.bpo-45536 [https://bugs.python.org/issue?@action=redirect&bpo=45536]: The
configure
script now checks whether OpenSSL headers and libraries provide required APIs. Most common APIs are verified. The check detects outdated or missing OpenSSL. Failures do not stop configure.bpo-45221 [https://bugs.python.org/issue?@action=redirect&bpo=45221]: Fixed regression in handling of
LDFLAGS
andCPPFLAGS
options whereargparse.parse_known_args()
could interpret an option as one of the builtin command line argument, for example-h
for help.bpo-45440 [https://bugs.python.org/issue?@action=redirect&bpo=45440]: Building Python now requires a C99
header file providing the following functions:copysign()
,hypot()
,isfinite()
,isinf()
,isnan()
,round()
. Patch by Victor Stinner.bpo-45405 [https://bugs.python.org/issue?@action=redirect&bpo=45405]: Prevent
internal configure error
when runningconfigure
with recent versions of non-Apple clang. Patch by David Bohman.bpo-45433 [https://bugs.python.org/issue?@action=redirect&bpo=45433]: Avoid linking libpython with libcrypt.
Windows
bpo-43652 [https://bugs.python.org/issue?@action=redirect&bpo=43652]: Update Tcl/Tk to 8.6.11, actually this time. The previous update incorrectly included 8.6.10.
bpo-45337 [https://bugs.python.org/issue?@action=redirect&bpo=45337]: venv now warns when the created environment may need to be accessed at a different path, due to redirections, links or junctions. It also now correctly installs or upgrades components when the alternate path is required.
bpo-43851 [https://bugs.python.org/issue?@action=redirect&bpo=43851]: Build SQLite
SQLITE_OMIT_AUTOINIT
on Windows. Patch by Erlend E. Aasland.
macOS
- bpo-44828 [https://bugs.python.org/issue?@action=redirect&bpo=44828]: Avoid tkinter file dialog failure on macOS 12 Monterey when using the Tk 8.6.11 provided by python.org macOS installers. Patch by Marc Culler of the Tk project.
IDLE
- bpo-45495 [https://bugs.python.org/issue?@action=redirect&bpo=45495]: Add context keywords 'case' and 'match' to completions list.