Windows
bpo-36312 [https://bugs.python.org/issue?@action=redirect&bpo=36312]: Fixed decoders for the following code pages: 50220, 50221, 50222, 50225, 50227, 50229, 57002 through 57011, 65000 and 42.
bpo-36264 [https://bugs.python.org/issue?@action=redirect&bpo=36264]: Don't honor POSIX
HOME
inos.path.expanduser
on windows. Patch by Anthony Sottile.bpo-24643 [https://bugs.python.org/issue?@action=redirect&bpo=24643]: Fix name collisions due to
#define timezone _timezone
in PC/pyconfig.h.
IDLE
bpo-36405 [https://bugs.python.org/issue?@action=redirect&bpo=36405]: Use dict unpacking in idlelib.
bpo-36396 [https://bugs.python.org/issue?@action=redirect&bpo=36396]: Remove fgBg param of idlelib.config.GetHighlight(). This param was only used twice and changed the return type.
bpo-36176 [https://bugs.python.org/issue?@action=redirect&bpo=36176]: Fix IDLE autocomplete & calltip popup colors. Prevent conflicts with Linux dark themes (and slightly darken calltip background).
bpo-23205 [https://bugs.python.org/issue?@action=redirect&bpo=23205]: For the grep module, add tests for findfiles, refactor findfiles to be a module-level function, and refactor findfiles to use os.walk.
bpo-23216 [https://bugs.python.org/issue?@action=redirect&bpo=23216]: Add docstrings to IDLE search modules.
bpo-36152 [https://bugs.python.org/issue?@action=redirect&bpo=36152]: Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close(). In IDLE, both have always been None or False since 2007.
bpo-32129 [https://bugs.python.org/issue?@action=redirect&bpo=32129]: Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch by Kevin Walzer.
bpo-36096 [https://bugs.python.org/issue?@action=redirect&bpo=36096]: Refactor class variables to instance variables in colorizer.
bpo-30348 [https://bugs.python.org/issue?@action=redirect&bpo=30348]: Increase test coverage of idlelib.autocomplete by 30%. Patch by Louie Lu
工具/示例
bpo-35132 [https://bugs.python.org/issue?@action=redirect&bpo=35132]: Fix py-list and py-bt commands of python-gdb.py on gdb7.
bpo-32217 [https://bugs.python.org/issue?@action=redirect&bpo=32217]: Fix freeze script on Windows.
C API
bpo-36381 [https://bugs.python.org/issue?@action=redirect&bpo=36381]: Raise
DeprecationWarning
when '#' formats are used for building or parsing values withoutPY_SSIZE_T_CLEAN
.bpo-36142 [https://bugs.python.org/issue?@action=redirect&bpo=36142]: The whole coreconfig.h header is now excluded from Py_LIMITED_API. Move functions definitions into a new internal pycore_coreconfig.h header.
Python 3.8.0 alpha 2
发布日期: 2019-02-25
核心与内置函数
bpo-36052 [https://bugs.python.org/issue?@action=redirect&bpo=36052]: Raise a
SyntaxError
when assigning a value to__debug__
with the Assignment Operator. Contributed by Stéphane Wirtel and Pablo Galindo.bpo-36012 [https://bugs.python.org/issue?@action=redirect&bpo=36012]: Doubled the speed of class variable writes. When a non-dunder attribute was updated, there was an unnecessary call to update slots.
bpo-35942 [https://bugs.python.org/issue?@action=redirect&bpo=35942]: The error message emitted when returning invalid types from
__fspath__
in interfaces that allow passingPathLike
objects has been improved and now it does explain the origin of the error.bpo-36016 [https://bugs.python.org/issue?@action=redirect&bpo=36016]:
gc.get_objects
can now receive an optional parameter indicating a generation to get objects from. Patch by Pablo Galindo.bpo-1054041 [https://bugs.python.org/issue?@action=redirect&bpo=1054041]: When the main interpreter exits due to an uncaught KeyboardInterrupt, the process now exits in the appropriate manner for its parent process to detect that a SIGINT or ^C terminated the process. This allows shells and batch scripts to understand that the user has asked them to stop.
bpo-35992 [https://bugs.python.org/issue?@action=redirect&bpo=35992]: Fix
__class_getitem__()
not being called on a class with a custom non-subscriptable metaclass.bpo-35993 [https://bugs.python.org/issue?@action=redirect&bpo=35993]: Fix a crash on fork when using subinterpreters. Contributed by Stéphane Wirtel
bpo-35991 [https://bugs.python.org/issue?@action=redirect&bpo=35991]: Fix a potential double free in Modules/_randommodule.c.
bpo-35961 [https://bugs.python.org/issue?@action=redirect&bpo=35961]: Fix a crash in slice_richcompare(): use strong references rather than stolen references for the two temporary internal tuples.
bpo-35911 [https://bugs.python.org/issue?@action=redirect&bpo=35911]: Enable the creation of cell objects by adding a
cell._new_
method, and expose the typecell
inLib/types.py
under the name CellType. Patch by Pierre Glaser.bpo-12822 [https://bugs.python.org/issue?@action=redirect&bpo=12822]: Use monotonic clock for
pthread_cond_timedwait
whenpthread_condattr_setclock
andCLOCK_MONOTONIC
are available.bpo-15248 [https://bugs.python.org/issue?@action=redirect&bpo=15248]: The compiler emits now syntax warnings in the case when a comma is likely missed before tuple or list.
bpo-35886 [https://bugs.python.org/issue?@action=redirect&bpo=35886]: The implementation of PyInterpreterState has been moved into the internal header files (guarded by Py_BUILD_CORE).
bpo-31506 [https://bugs.python.org/issue?@action=redirect&bpo=31506]: Clarify the errors reported when
object._new_
andobject.__init__
receive more than one argument. Contributed by Sanyam Khurana.bpo-35724 [https://bugs.python.org/issue?@action=redirect&bpo=35724]: Signal-handling is now guaranteed to happen relative to the main interpreter.
bpo-33608 [https://bugs.python.org/issue?@action=redirect&bpo=33608]: We added a new internal PyAddPendingCall() that operates relative to the provided interpreter. This allows us to use the existing implementation to ask another interpreter to do work that cannot be done in the current interpreter, like decref an object the other interpreter owns. The existing Py_AddPendingCall() only operates relative to the main interpreter.
bpo-33989 [https://bugs.python.org/issue?@action=redirect&bpo=33989]: Fix a possible crash in
list.sort()
when sorting objects withob_type->tp_richcompare == NULL
. Patch by Zackery Spytz.
库
bpo-35512 [https://bugs.python.org/issue?@action=redirect&bpo=35512]:
unittest.mock.patch.dict()
used as a decorator with string target resolves the target during function call instead of during decorator construction. Patch by Karthikeyan Singaravelan.bpo-36018 [https://bugs.python.org/issue?@action=redirect&bpo=36018]: Add statistics.NormalDist, a tool for creating and manipulating normal distributions of random variable. Features a composite class that treats the mean and standard deviation of measurement data as single entity.
bpo-35904 [https://bugs.python.org/issue?@action=redirect&bpo=35904]: Added statistics.fmean() as a faster, floating-point variant of the existing mean() function.
bpo-35918 [https://bugs.python.org/issue?@action=redirect&bpo=35918]: Removed broken
has_key
method from multiprocessing.managers.SyncManager.dict. Contributed by Rémi Lapeyre.bpo-18283 [https://bugs.python.org/issue?@action=redirect&bpo=18283]: Add support for bytes to
shutil.which()
.bpo-35960 [https://bugs.python.org/issue?@action=redirect&bpo=35960]: Fix
dataclasses.field()
throwing away empty mapping objects passed as metadata.bpo-35500 [https://bugs.python.org/issue?@action=redirect&bpo=35500]: Write expected and actual call parameters on separate lines in
unittest.mock.Mock.assert_called_with()
assertion errors. Contributed by Susan Su.bpo-35931 [https://bugs.python.org/issue?@action=redirect&bpo=35931]: The
pdb
debug
command now gracefully handles syntax errors.bpo-24209 [https://bugs.python.org/issue?@action=redirect&bpo=24209]: In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. Now default bind or binding to a name may bind to IPv6 or dualstack, depending on the environment.
bpo-35321 [https://bugs.python.org/issue?@action=redirect&bpo=35321]: Set
__spec__.origin
offrozenimportlib
to frozen so that it matches the behavior offrozenimportlib_external
. Patch by Nina Zakharenko.bpo-35378 [https://bugs.python.org/issue?@action=redirect&bpo=35378]: Fix a reference issue inside
multiprocessing.Pool
that caused the pool to remain alive if it was deleted without being closed or terminated explicitly. A new strong reference is added to the pool iterators to link the lifetime of the pool to the lifetime of its iterators so the pool does not get destroyed if a pool iterator is still alive.bpo-34294 [https://bugs.python.org/issue?@action=redirect&bpo=34294]: re module, fix wrong capturing groups in rare cases.
re.search()
,re.findall()
,re.sub()
and other functions that scan through string looking for a match, should reset capturing groups between two match attempts. Patch by Ma Lin.bpo-35615 [https://bugs.python.org/issue?@action=redirect&bpo=35615]:
weakref
: Fix a RuntimeError when copying a WeakKeyDictionary or a WeakValueDictionary, due to some keys or values disappearing while iterating.bpo-35606 [https://bugs.python.org/issue?@action=redirect&bpo=35606]: Implement
math.prod()
as analogous function tosum()
that returns the product of a 'start' value (default: 1) times an iterable of numbers. Patch by Pablo Galindo.bpo-32417 [https://bugs.python.org/issue?@action=redirect&bpo=32417]: Performing arithmetic between
datetime.datetime
subclasses anddatetime.timedelta
now returns an object of the same type as thedatetime.datetime
subclass. As a result,datetime.datetime.astimezone()
and alternate constructors likedatetime.datetime.now()
anddatetime.fromtimestamp()
called with atz
argument now also retain their subclass.bpo-35153 [https://bugs.python.org/issue?@action=redirect&bpo=35153]: Add headers optional keyword-only parameter to
xmlrpc.client.ServerProxy
,xmlrpc.client.Transport
andxmlrpc.client.SafeTransport
. Patch by Cédric Krier.bpo-34572 [https://bugs.python.org/issue?@action=redirect&bpo=34572]: Fix C implementation of pickle.loads to use importlib's locking mechanisms, and thereby avoid using partially loaded modules. Patch by Tim Burgess.
文档
bpo-36083 [https://bugs.python.org/issue?@action=redirect&bpo=36083]: Fix formatting of —check-hash-based-pycs options in the manpage Synopsis.
bpo-36007 [https://bugs.python.org/issue?@action=redirect&bpo=36007]: Bump minimum sphinx version to 1.8. Patch by Anthony Sottile.
bpo-22062 [https://bugs.python.org/issue?@action=redirect&bpo=22062]: Update documentation and docstrings for pathlib. Original patch by Mike Short.