文档
bpo-33409 [https://bugs.python.org/issue?@action=redirect&bpo=33409]: Clarified the relationship between PEP 538 [https://peps.python.org/pep-0538/]'s PYTHONCOERCECLOCALE and PEP 540's PYTHONUTF8 mode.
bpo-33736 [https://bugs.python.org/issue?@action=redirect&bpo=33736]: Improve the documentation of
asyncio.open_connection()
,asyncio.start_server()
and their UNIX socket counterparts.bpo-31432 [https://bugs.python.org/issue?@action=redirect&bpo=31432]: Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED flags for ssl.SSLContext.verify_mode.
构建
- bpo-5755 [https://bugs.python.org/issue?@action=redirect&bpo=5755]: Move
-Wstrict-prototypes
option toCFLAGS_NODIST
fromOPT
. This option emitted annoying warnings when building extension modules written in C++.
Windows
- bpo-33720 [https://bugs.python.org/issue?@action=redirect&bpo=33720]: Reduces maximum marshal recursion depth on release builds.
IDLE
bpo-33656 [https://bugs.python.org/issue?@action=redirect&bpo=33656]: On Windows, add API call saying that tk scales for DPI. On Windows 8.1+ or 10, with DPI compatibility properties of the Python binary unchanged, and a monitor resolution greater than 96 DPI, this should make text and lines sharper. It should otherwise have no effect.
bpo-33768 [https://bugs.python.org/issue?@action=redirect&bpo=33768]: Clicking on a context line moves that line to the top of the editor window.
bpo-33763 [https://bugs.python.org/issue?@action=redirect&bpo=33763]: IDLE: Use readonly text widget for code context instead of label widget.
bpo-33664 [https://bugs.python.org/issue?@action=redirect&bpo=33664]: Scroll IDLE editor text by lines. Previously, the mouse wheel and scrollbar slider moved text by a fixed number of pixels, resulting in partial lines at the top of the editor box. The change also applies to the shell and grep output windows, but not to readonly text views.
bpo-33679 [https://bugs.python.org/issue?@action=redirect&bpo=33679]: Enable theme-specific color configuration for Code Context. Use the Highlights tab to see the setting for builtin themes or add settings to custom themes.
bpo-33642 [https://bugs.python.org/issue?@action=redirect&bpo=33642]: Display up to maxlines non-blank lines for Code Context. If there is no current context, show a single blank line.
Python 3.7.0 beta 5
发布日期: 2018-05-30
核心与内置函数
bpo-33622 [https://bugs.python.org/issue?@action=redirect&bpo=33622]: Fixed a leak when the garbage collector fails to add an object with the
__del__
method or referenced by it into thegc.garbage
list.PyGC_Collect()
can now be called when an exception is set and preserves it.bpo-33509 [https://bugs.python.org/issue?@action=redirect&bpo=33509]: Fix module_globals parameter of warnings.warn_explicit(): don't crash if module_globals is not a dict.
bpo-20104 [https://bugs.python.org/issue?@action=redirect&bpo=20104]: The new
os.posix_spawn
added in 3.7.0b1 was removed as we are still working on what the API should look like. Expect this in 3.8 instead.bpo-33475 [https://bugs.python.org/issue?@action=redirect&bpo=33475]: Fixed miscellaneous bugs in converting annotations to strings and optimized parentheses in the string representation.
bpo-33391 [https://bugs.python.org/issue?@action=redirect&bpo=33391]: Fix a leak in set_symmetric_difference().
bpo-28055 [https://bugs.python.org/issue?@action=redirect&bpo=28055]: Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
bpo-32911 [https://bugs.python.org/issue?@action=redirect&bpo=32911]: Due to unexpected compatibility issues discovered during downstream beta testing, reverted bpo-29463 [https://bugs.python.org/issue?@action=redirect&bpo=29463].
docstring
field is removed from Module, ClassDef, FunctionDef, and AsyncFunctionDef ast nodes which was added in 3.7a1. Docstring expression is restored as a first statement in their body. Based on patch by Inada Naoki.bpo-21983 [https://bugs.python.org/issue?@action=redirect&bpo=21983]: Fix a crash in
ctypes.cast()
in case the type argument is a ctypes structured data type. Patch by Eryk Sun and Oren Milman.
库
bpo-32751 [https://bugs.python.org/issue?@action=redirect&bpo=32751]: When cancelling the task due to a timeout,
asyncio.wait_for()
will now wait until the cancellation is complete.bpo-32684 [https://bugs.python.org/issue?@action=redirect&bpo=32684]: Fix gather to propagate cancellation of itself even with return_exceptions.
bpo-33654 [https://bugs.python.org/issue?@action=redirect&bpo=33654]: Support protocol type switching in SSLTransport.set_protocol().
bpo-33674 [https://bugs.python.org/issue?@action=redirect&bpo=33674]: Pause the transport as early as possible to further reduce the risk of data_received() being called before connection_made().
bpo-33674 [https://bugs.python.org/issue?@action=redirect&bpo=33674]: Fix a race condition in SSLProtocol.connection_made() of asyncio.sslproto: start immediately the handshake instead of using call_soon(). Previously, data_received() could be called before the handshake started, causing the handshake to hang or fail.
bpo-31647 [https://bugs.python.org/issue?@action=redirect&bpo=31647]: Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's already closed raises AttributeError.
bpo-32610 [https://bugs.python.org/issue?@action=redirect&bpo=32610]: Make asyncio.all_tasks() return only pending tasks.
bpo-32410 [https://bugs.python.org/issue?@action=redirect&bpo=32410]: Avoid blocking on file IO in sendfile fallback code
bpo-33469 [https://bugs.python.org/issue?@action=redirect&bpo=33469]: Fix RuntimeError after closing loop that used run_in_executor
bpo-33672 [https://bugs.python.org/issue?@action=redirect&bpo=33672]: Fix Task.repr crash with Cython's bogus coroutines
bpo-33654 [https://bugs.python.org/issue?@action=redirect&bpo=33654]: Fix transport.set_protocol() to support switching between asyncio.Protocol and asyncio.BufferedProtocol. Fix loop.start_tls() to work with asyncio.BufferedProtocols.
bpo-33652 [https://bugs.python.org/issue?@action=redirect&bpo=33652]: Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions.
bpo-32493 [https://bugs.python.org/issue?@action=redirect&bpo=32493]: Fixed
uuid.uuid1()
on FreeBSD.bpo-33618 [https://bugs.python.org/issue?@action=redirect&bpo=33618]: Finalize and document preliminary and experimental TLS 1.3 support with OpenSSL 1.1.1
bpo-33623 [https://bugs.python.org/issue?@action=redirect&bpo=33623]: Fix possible SIGSGV when asyncio.Future is created in del
bpo-30877 [https://bugs.python.org/issue?@action=redirect&bpo=30877]: Fixed a bug in the Python implementation of the JSON decoder that prevented the cache of parsed strings from clearing after finishing the decoding. Based on patch by c-fos.
bpo-33570 [https://bugs.python.org/issue?@action=redirect&bpo=33570]: Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 ciphers enabled by default.
bpo-28556 [https://bugs.python.org/issue?@action=redirect&bpo=28556]: Do not simplify arguments to
typing.Union
. NowUnion[Manager, Employee]
is not simplified toEmployee
at runtime. Such simplification previously caused several bugs and limited possibilities for introspection.bpo-33540 [https://bugs.python.org/issue?@action=redirect&bpo=33540]: Add a new
block_on_close
class attribute toForkingMixIn
andThreadingMixIn
classes ofsocketserver
.bpo-33548 [https://bugs.python.org/issue?@action=redirect&bpo=33548]: tempfile._candidate_tempdir_list should consider common TEMP locations
bpo-33109 [https://bugs.python.org/issue?@action=redirect&bpo=33109]: argparse subparsers are once again not required by default, reverting the change in behavior introduced by bpo-26510 [https://bugs.python.org/issue?@action=redirect&bpo=26510] in 3.7.0a2.
bpo-33536 [https://bugs.python.org/issue?@action=redirect&bpo=33536]: dataclasses.make_dataclass now checks for invalid field names and duplicate fields. Also, added a check for invalid field specifications.
bpo-33542 [https://bugs.python.org/issue?@action=redirect&bpo=33542]: Prevent
uuid.get_node
from using a DUID instead of a MAC on Windows. Patch by Zvi Effronbpo-26819 [https://bugs.python.org/issue?@action=redirect&bpo=26819]: Fix race condition with
ReadTransport.resume_reading
in Windows proactor event loop.Fix failure in
typing.get_type_hints()
when ClassVar was provided as a string forward reference.bpo-33505 [https://bugs.python.org/issue?@action=redirect&bpo=33505]: Optimize asyncio.ensure_future() by reordering if checks: 1.17x faster.
bpo-33497 [https://bugs.python.org/issue?@action=redirect&bpo=33497]: Add errors param to cgi.parse_multipart and make an encoding in FieldStorage use the given errors (needed for Twisted). Patch by Amber Brown.
bpo-33495 [https://bugs.python.org/issue?@action=redirect&bpo=33495]: Change dataclasses.Fields repr to use the repr of each of its members, instead of str. This makes it more clear what each field actually represents. This is especially true for the 'type' member.
bpo-33453 [https://bugs.python.org/issue?@action=redirect&bpo=33453]: Fix dataclasses to work if using literal string type annotations or if using PEP 563 "Postponed Evaluation of Annotations". Only specific string prefixes are detected for both ClassVar ("ClassVar" and "typing.ClassVar") and InitVar ("InitVar" and "dataclasses.InitVar").
bpo-28556 [https://bugs.python.org/issue?@action=redirect&bpo=28556]: Minor fixes in typing module: add annotations to
NamedTuple._new_
, pass*args
and**kwds
inGeneric._new_
. Original PRs by Paulius Šarka and Chad Dombrova.bpo-20087 [https://bugs.python.org/issue?@action=redirect&bpo=20087]: Updated alias mapping with glibc 2.27 supported locales.
bpo-33422 [https://bugs.python.org/issue?@action=redirect&bpo=33422]: Fix trailing quotation marks getting deleted when looking up byte/string literals on pydoc. Patch by Andrés Delfino.
bpo-28167 [https://bugs.python.org/issue?@action=redirect&bpo=28167]: The function
platform.linux_distribution
andplatform.dist
now trigger aDeprecationWarning
and have been marked for removal in Python 3.8bpo-33197 [https://bugs.python.org/issue?@action=redirect&bpo=33197]: Update error message when constructing invalid inspect.Parameters Patch by Donghee Na.
bpo-33263 [https://bugs.python.org/issue?@action=redirect&bpo=33263]: Fix FD leak in
_SelectorSocketTransport
Patch by Vlad Starostin.bpo-32861 [https://bugs.python.org/issue?@action=redirect&bpo=32861]: The urllib.robotparser's
__str__
representation now includes wildcard entries and the "Crawl-delay" and "Request-rate" fields. Patch by Michael Lazar.bpo-32257 [https://bugs.python.org/issue?@action=redirect&bpo=32257]: The ssl module now contains OP_NO_RENEGOTIATION constant, available with OpenSSL 1.1.0h or 1.1.1.
bpo-16865 [https://bugs.python.org/issue?@action=redirect&bpo=16865]: Support arrays >=2GiB in
ctypes
. Patch by Segev Finer.
文档
bpo-23859 [https://bugs.python.org/issue?@action=redirect&bpo=23859]: Document that
asyncio.wait()
does not cancel its futures on timeout.bpo-32436 [https://bugs.python.org/issue?@action=redirect&bpo=32436]: Document PEP 567 [https://peps.python.org/pep-0567/] changes to asyncio.
bpo-33604 [https://bugs.python.org/issue?@action=redirect&bpo=33604]: Update HMAC md5 default to a DeprecationWarning, bump removal to 3.8.
bpo-33503 [https://bugs.python.org/issue?@action=redirect&bpo=33503]: Fix broken pypi link
bpo-33421 [https://bugs.python.org/issue?@action=redirect&bpo=33421]: Add missing documentation for
typing.AsyncContextManager
.
测试
bpo-33655 [https://bugs.python.org/issue?@action=redirect&bpo=33655]: Ignore test_posix_fallocate failures on BSD platforms that might be due to running on ZFS.
bpo-32604 [https://bugs.python.org/issue?@action=redirect&bpo=32604]: Remove the _xxsubinterpreters module (meant for testing) and associated helpers. This module was originally added recently in 3.7b1.
构建
bpo-33614 [https://bugs.python.org/issue?@action=redirect&bpo=33614]: Ensures module definition files for the stable ABI on Windows are correctly regenerated.
bpo-33522 [https://bugs.python.org/issue?@action=redirect&bpo=33522]: Enable CI builds on Visual Studio Team Services at https://python.visualstudio.com/cpython
bpo-33012 [https://bugs.python.org/issue?@action=redirect&bpo=33012]: Add
-Wno-cast-function-type
for gcc 8 for silencing warnings about function casts like casting to PyCFunction in method definition lists.
macOS
- bpo-13631 [https://bugs.python.org/issue?@action=redirect&bpo=13631]: The .editrc file in user's home directory is now processed correctly during the readline initialization through editline emulation on macOS.
IDLE
bpo-33628 [https://bugs.python.org/issue?@action=redirect&bpo=33628]: IDLE: Cleanup codecontext.py and its test.
bpo-33564 [https://bugs.python.org/issue?@action=redirect&bpo=33564]: IDLE's code context now recognizes async as a block opener.
bpo-32831 [https://bugs.python.org/issue?@action=redirect&bpo=32831]: Add docstrings and tests for codecontext.
Python 3.7.0 beta 4
发布日期: 2018-05-02
核心与内置函数
bpo-33363 [https://bugs.python.org/issue?@action=redirect&bpo=33363]: Raise a SyntaxError for
async with
andasync for
statements outside of async functions.bpo-33128 [https://bugs.python.org/issue?@action=redirect&bpo=33128]: Fix a bug that causes PathFinder to appear twice on sys.meta_path. Patch by Pablo Galindo Salgado.
bpo-33312 [https://bugs.python.org/issue?@action=redirect&bpo=33312]: Fixed clang ubsan (undefined behavior sanitizer) warnings in dictobject.c by adjusting how the internal struct _dictkeysobject shared keys structure is declared.
bpo-33231 [https://bugs.python.org/issue?@action=redirect&bpo=33231]: Fix potential memory leak in
normalizestring()
.bpo-33205 [https://bugs.python.org/issue?@action=redirect&bpo=33205]: Change dict growth function from
round_up_to_power_2(used*2+hashtable_size/2)
toround_up_to_power_2(used*3)
. Previously, dict is shrinked only whenused == 0
. Now dict has more chance to be shrinked.bpo-29922 [https://bugs.python.org/issue?@action=redirect&bpo=29922]: Improved error messages in 'async with' when
__aenter__()
or__aexit__()
return non-awaitable object.bpo-33199 [https://bugs.python.org/issue?@action=redirect&bpo=33199]: Fix
ma_version_tag
in dict implementation is uninitialized when copying from key-sharing dict.
库
bpo-33281 [https://bugs.python.org/issue?@action=redirect&bpo=33281]: Fix ctypes.util.find_library regression on macOS.
bpo-33383 [https://bugs.python.org/issue?@action=redirect&bpo=33383]: Fixed crash in the get() method of the
dbm.ndbm
database object when it is called with a single argument.bpo-33329 [https://bugs.python.org/issue?@action=redirect&bpo=33329]: Fix multiprocessing regression on newer glibcs
bpo-991266 [https://bugs.python.org/issue?@action=redirect&bpo=991266]: Fix quoting of the
Comment
attribute ofhttp.cookies.SimpleCookie
.bpo-33131 [https://bugs.python.org/issue?@action=redirect&bpo=33131]: Upgrade bundled version of pip to 10.0.1.
bpo-33308 [https://bugs.python.org/issue?@action=redirect&bpo=33308]: Fixed a crash in the
parser
module when converting an ST object to a tree of tuples or lists withline_info=False
andcol_info=True
.bpo-33266 [https://bugs.python.org/issue?@action=redirect&bpo=33266]: lib2to3 now recognizes
rf'…'
strings.bpo-11594 [https://bugs.python.org/issue?@action=redirect&bpo=11594]: Ensure line-endings are respected when using lib2to3.
bpo-33254 [https://bugs.python.org/issue?@action=redirect&bpo=33254]: Have
importlib.resources.contents()
andimportlib.abc.ResourceReader.contents()
return an iterable instead of an iterator.bpo-33256 [https://bugs.python.org/issue?@action=redirect&bpo=33256]: Fix display of
call in the html produced bycgitb.html()
. Patch by Stéphane Blondon.bpo-33185 [https://bugs.python.org/issue?@action=redirect&bpo=33185]: Fixed regression when running pydoc with the
-m
switch. (The regression was introduced in 3.7.0b3 by the resolution of bpo-33053 [https://bugs.python.org/issue?@action=redirect&bpo=33053]) This fix also changed pydoc to addos.getcwd()
tosys.path
when necessary, rather than adding"."
.bpo-33169 [https://bugs.python.org/issue?@action=redirect&bpo=33169]: Delete entries of
None
insys.path_importer_cache
whenimportlib.machinery.invalidate_caches()
is called.bpo-33217 [https://bugs.python.org/issue?@action=redirect&bpo=33217]: Deprecate looking up non-Enum objects in Enum classes and Enum members (will raise
TypeError
in 3.8+).bpo-33203 [https://bugs.python.org/issue?@action=redirect&bpo=33203]:
random.Random.choice()
now raisesIndexError
for empty sequences consistently even when called from subclasses without agetrandbits()
implementation.bpo-33224 [https://bugs.python.org/issue?@action=redirect&bpo=33224]: Update difflib.mdiff() for PEP 479 [https://peps.python.org/pep-0479/]. Convert an uncaught StopIteration in a generator into a return-statement.
bpo-33209 [https://bugs.python.org/issue?@action=redirect&bpo=33209]: End framing at the end of C implementation of
pickle.Pickler.dump()
.bpo-20104 [https://bugs.python.org/issue?@action=redirect&bpo=20104]: Improved error handling and fixed a reference leak in
os.posix_spawn()
.bpo-33175 [https://bugs.python.org/issue?@action=redirect&bpo=33175]: In dataclasses, Field.setname_ now looks up the _setname special method on the class, not the instance, of the default value.
bpo-33097 [https://bugs.python.org/issue?@action=redirect&bpo=33097]: Raise RuntimeError when
executor.submit
is called during interpreter shutdown.bpo-31908 [https://bugs.python.org/issue?@action=redirect&bpo=31908]: Fix output of cover files for
trace
module commandline tool. Previously emitted cover files only when--missing
option was used. Patch by Michael Selik.
文档
bpo-33378 [https://bugs.python.org/issue?@action=redirect&bpo=33378]: Add Korean language switcher for https://docs.python.org/3/
bpo-33276 [https://bugs.python.org/issue?@action=redirect&bpo=33276]: Clarify that the
__path__
attribute on modules cannot be just any value.bpo-33201 [https://bugs.python.org/issue?@action=redirect&bpo=33201]: Modernize documentation for writing C extension types.
bpo-33195 [https://bugs.python.org/issue?@action=redirect&bpo=33195]: Deprecate
Py_UNICODE
usage inc-api/arg
document.Py_UNICODE
related APIs are deprecated since Python 3.3, but it is missed in the document.bpo-8243 [https://bugs.python.org/issue?@action=redirect&bpo=8243]: Add a note about curses.addch and curses.addstr exception behavior when writing outside a window, or pad.
bpo-32337 [https://bugs.python.org/issue?@action=redirect&bpo=32337]: Update documentation related with
dict
order.
测试
- bpo-33358 [https://bugs.python.org/issue?@action=redirect&bpo=33358]: Fix
test_embed.test_pre_initialization_sys_options()
when the interpreter is built with--enable-shared
.
构建
bpo-33394 [https://bugs.python.org/issue?@action=redirect&bpo=33394]: Enable the verbose build for extension modules, when GNU make is passed macros on the command line.
bpo-33393 [https://bugs.python.org/issue?@action=redirect&bpo=33393]: Update config.guess and config.sub files.
bpo-33377 [https://bugs.python.org/issue?@action=redirect&bpo=33377]: Add new triplets for mips r6 and riscv variants (used in extension suffixes).
bpo-32232 [https://bugs.python.org/issue?@action=redirect&bpo=32232]: By default, modules configured in
Modules/Setup
are no longer built with-DPy_BUILD_CORE
. Instead, modules that specifically need that preprocessor definition include it in their individual entries.bpo-33182 [https://bugs.python.org/issue?@action=redirect&bpo=33182]: The embedding tests can once again be built with clang 6.0
Windows
- bpo-33184 [https://bugs.python.org/issue?@action=redirect&bpo=33184]: Update Windows installer to use OpenSSL 1.1.0h.
macOS
- bpo-33184 [https://bugs.python.org/issue?@action=redirect&bpo=33184]: Update macOS installer build to use OpenSSL 1.1.0h.
IDLE
bpo-21474 [https://bugs.python.org/issue?@action=redirect&bpo=21474]: Update word/identifier definition from ascii to unicode. In text and entry boxes, this affects selection by double-click, movement left/right by control-left/right, and deletion left/right by control-BACKSPACE/DEL.
bpo-33204 [https://bugs.python.org/issue?@action=redirect&bpo=33204]: IDLE: consistently color invalid string prefixes. A 'u' string prefix cannot be paired with either 'r' or 'f'. Consistently color as much of the prefix, starting at the right, as is valid. Revise and extend colorizer test.
工具/示例
bpo-33189 [https://bugs.python.org/issue?@action=redirect&bpo=33189]: pygettext.py now recognizes only literal strings as docstrings and translatable strings, and rejects bytes literals and fstring expressions.
bpo-31920 [https://bugs.python.org/issue?@action=redirect&bpo=31920]: Fixed handling directories as arguments in the
pygettext
script. Based on patch by Oleg Krasnikov.bpo-29673 [https://bugs.python.org/issue?@action=redirect&bpo=29673]: Fix pystackv and pystack gdbinit macros.
bpo-31583 [https://bugs.python.org/issue?@action=redirect&bpo=31583]: Fix 2to3 for using with —add-suffix option but without —output-dir option for relative path to files in current directory.
Python 3.7.0 beta 3
发布日期: 2018-03-29
安全性
bpo-33136 [https://bugs.python.org/issue?@action=redirect&bpo=33136]: Harden ssl module against LibreSSL CVE 2018-8970 [https://www.cve.org/CVERecord?id=CVE-2018-8970]. X509_VERIFY_PARAM_set1_host() is called with an explicit namelen. A new test ensures that NULL bytes are not allowed.
bpo-33001 [https://bugs.python.org/issue?@action=redirect&bpo=33001]: Minimal fix to prevent buffer overrun in os.symlink on Windows
bpo-32981 [https://bugs.python.org/issue?@action=redirect&bpo=32981]: Regexes in difflib and poplib were vulnerable to catastrophic backtracking. These regexes formed potential DOS vectors (REDOS). They have been refactored. This resolves CVE 2018-1060 [https://www.cve.org/CVERecord?id=CVE-2018-1060] and CVE 2018-1061 [https://www.cve.org/CVERecord?id=CVE-2018-1061]. Patch by Jamie Davis.
核心与内置函数
bpo-33053 [https://bugs.python.org/issue?@action=redirect&bpo=33053]: When using the -m switch, sys.path[0] is now explicitly expanded as the starting working directory, rather than being left as the empty path (which allows imports from the current working directory at the time of the import)
bpo-33018 [https://bugs.python.org/issue?@action=redirect&bpo=33018]: Improve consistency of errors raised by
issubclass()
when called with a non-class and an abstract base class as the first and second arguments, respectively. Patch by Josh Bronson.bpo-33041 [https://bugs.python.org/issue?@action=redirect&bpo=33041]: Fixed jumping when the function contains an
async for
loop.bpo-33026 [https://bugs.python.org/issue?@action=redirect&bpo=33026]: Fixed jumping out of "with" block by setting f_lineno.
bpo-33005 [https://bugs.python.org/issue?@action=redirect&bpo=33005]: Fix a crash on fork when using a custom memory allocator (ex: using PYTHONMALLOC env var). PyGILStateReinit() and PyInterpreterStateEnable() now use the default RAW memory allocator to allocate a new interpreters mutex on fork.
bpo-17288 [https://bugs.python.org/issue?@action=redirect&bpo=17288]: Prevent jumps from 'return' and 'exception' trace events.
bpo-32836 [https://bugs.python.org/issue?@action=redirect&bpo=32836]: Don't use temporary variables in cases of list/dict/set comprehensions
库
bpo-33141 [https://bugs.python.org/issue?@action=redirect&bpo=33141]: Have Field objects pass through setname_ to their default values, if they have their own _setname.
bpo-33096 [https://bugs.python.org/issue?@action=redirect&bpo=33096]: Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note iid=0 and iid=False would be same. Patch by Garvit Khatri.
bpo-32873 [https://bugs.python.org/issue?@action=redirect&bpo=32873]: Treat type variables and special typing forms as immutable by copy and pickle. This fixes several minor issues and inconsistencies, and improves backwards compatibility with Python 3.6.
bpo-33134 [https://bugs.python.org/issue?@action=redirect&bpo=33134]: When computing dataclass's hash, use the lookup table to contain the function which returns the hash value. This is an improvement over looking up a string, and then testing that string to see what to do.
bpo-33127 [https://bugs.python.org/issue?@action=redirect&bpo=33127]: The ssl module now compiles with LibreSSL 2.7.1.
bpo-32505 [https://bugs.python.org/issue?@action=redirect&bpo=32505]: Raise TypeError if a member variable of a dataclass is of type Field, but doesn't have a type annotation.
bpo-33078 [https://bugs.python.org/issue?@action=redirect&bpo=33078]: Fix the failure on OSX caused by the tests relying on sem_getvalue
bpo-33116 [https://bugs.python.org/issue?@action=redirect&bpo=33116]: Add 'Field' to dataclasses.all.
bpo-32896 [https://bugs.python.org/issue?@action=redirect&bpo=32896]: Fix an error where subclassing a dataclass with a field that uses a default_factory would generate an incorrect class.
bpo-33100 [https://bugs.python.org/issue?@action=redirect&bpo=33100]: Dataclasses: If a field has a default value that's a MemberDescriptorType, then it's from that field being in slots, not an actual default value.
bpo-32953 [https://bugs.python.org/issue?@action=redirect&bpo=32953]: If a non-dataclass inherits from a frozen dataclass, allow attributes to be added to the derived class. Only attributes from the frozen dataclass cannot be assigned to. Require all dataclasses in a hierarchy to be either all frozen or all non-frozen.
bpo-33061 [https://bugs.python.org/issue?@action=redirect&bpo=33061]: Add missing
NoReturn
to__all__
in typing.pybpo-33078 [https://bugs.python.org/issue?@action=redirect&bpo=33078]: Fix the size handling in multiprocessing.Queue when a pickling error occurs.
bpo-33064 [https://bugs.python.org/issue?@action=redirect&bpo=33064]: lib2to3 now properly supports trailing commas after
*args
and**kwargs
in function signatures.bpo-33056 [https://bugs.python.org/issue?@action=redirect&bpo=33056]: FIX properly close leaking fds in concurrent.futures.ProcessPoolExecutor.
bpo-33021 [https://bugs.python.org/issue?@action=redirect&bpo=33021]: Release the GIL during fstat() calls, avoiding hang of all threads when calling mmap.mmap(), os.urandom(), and random.seed(). Patch by Nir Soffer.
bpo-31804 [https://bugs.python.org/issue?@action=redirect&bpo=31804]: Avoid failing in multiprocessing.Process if the standard streams are closed or None at exit.
bpo-33037 [https://bugs.python.org/issue?@action=redirect&bpo=33037]: Skip sending/receiving data after SSL transport closing.
bpo-27683 [https://bugs.python.org/issue?@action=redirect&bpo=27683]: Fix a regression in
ipaddress
that result ofhosts()
is empty when the network is constructed by a tuple containing an integer mask and only 1 bit left for addresses.bpo-32999 [https://bugs.python.org/issue?@action=redirect&bpo=32999]: Fix C implementation of
ABC.__subclasscheck__(cls, subclass)
crashed whensubclass
is not a type object.bpo-33009 [https://bugs.python.org/issue?@action=redirect&bpo=33009]: Fix inspect.signature() for single-parameter partialmethods.
bpo-32969 [https://bugs.python.org/issue?@action=redirect&bpo=32969]: Expose several missing constants in zlib and fix corresponding documentation.
bpo-32056 [https://bugs.python.org/issue?@action=redirect&bpo=32056]: Improved exceptions raised for invalid number of channels and sample width when read an audio file in modules
aifc
,wave
andsunau
.bpo-32844 [https://bugs.python.org/issue?@action=redirect&bpo=32844]: Fix wrong redirection of a low descriptor (0 or 1) to stderr in subprocess if another low descriptor is closed.
bpo-32857 [https://bugs.python.org/issue?@action=redirect&bpo=32857]: In
tkinter
,after_cancel(None)
now raises aValueError
instead of canceling the first scheduled function. Patch by Cheryl Sabella.bpo-31639 [https://bugs.python.org/issue?@action=redirect&bpo=31639]: http.server now exposes a ThreadedHTTPServer class and uses it when the module is run with
-m
to cope with web browsers pre-opening sockets.bpo-27645 [https://bugs.python.org/issue?@action=redirect&bpo=27645]:
sqlite3.Connection
now exposes abackup
method, if the underlying SQLite library is at version 3.6.11 or higher. Patch by Lele Gaifax.
文档
bpo-33126 [https://bugs.python.org/issue?@action=redirect&bpo=33126]: Document PyBuffer_ToContiguous().
bpo-27212 [https://bugs.python.org/issue?@action=redirect&bpo=27212]: Modify documentation for the
islice()
recipe to consume initial values up to the start index.bpo-28247 [https://bugs.python.org/issue?@action=redirect&bpo=28247]: Update
zipapp
documentation to describe how to make standalone applications.bpo-18802 [https://bugs.python.org/issue?@action=redirect&bpo=18802]: Documentation changes for ipaddress. Patch by Jon Foster and Berker Peksag.
bpo-27428 [https://bugs.python.org/issue?@action=redirect&bpo=27428]: Update documentation to clarify that
WindowsRegistryFinder
implementsMetaPathFinder
. (Patch by Himanshu Lakhara)
测试
bpo-32872 [https://bugs.python.org/issue?@action=redirect&bpo=32872]: Avoid regrtest compatibility issue with namespace packages.
bpo-32517 [https://bugs.python.org/issue?@action=redirect&bpo=32517]: Fix failing
test_asyncio
on macOS 10.12.2+ due to transport ofKqueueSelector
loop was not being closed.bpo-19417 [https://bugs.python.org/issue?@action=redirect&bpo=19417]: Add test_bdb.py.