mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
Python 3.8.0a4
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlzQfXsACgkQsmmV4xAl BWhB8g/+P+lbqKLZKb9X1W1deSMAoEt9fdHwRK4SXdSYiVAypMURR5qsexAuXILn VunaphcHniUq/LTMfyA6LAX8HjKPqwKPfHi7hKfwaoYKw/SCKi50tXgbuCGj/ZKK ix5HO76Jh4YFf6KV64c8Mkxas8Lk59ybLqAaI1D2maL9olYxvmmsEGpaXliEexfI heItUk5sGaz5ARXPaC5PlQEL3lgRE16dC1t1/vHCU1sseN2tf2XkIszsb9wF1ei/ Wlg1gkDL6JetdUwxAyH4J/nZunSEeZ0MwJjzBGfWxc1fVhGzXDvyeWg2VQ3/OB46 mH68RKOuVWLy+jQKbBuPDMOgyuTtM2L+bOmuGxKYkotL5EOIz6BmaRvH9VTJNoJ6 xoUVHOSaOZDSVwA4EUBPNbYIVHj7E/11SJQKzBxDO15Pn/T9Zw8yz689yRDoFj42 zCQK/a+2xvjm+WpvNZO4pwyoTOtvT7phirk7C9lV4KM3xH6jkGr6tHYkTFFRXfc0 uXgIeq70jgb/qESojuBNQziVqhhHFhS6tZ/485jDYCkLytImZKRLhzOe9Xd+7WiI Vi1tUHbwgRmvimqNHFA7sFME3LI5ryDcDV7DLUL7sLK13m0iWQ4tSOT4TrERhGBG TL4KyAzspL5bC56Vt8DFuI/N4Byy5dN7tnFj7+5N7qgK1+Oshk0= =1r7h -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlzRnIkQHGx1a2FzekBs YW5nYS5wbAAKCRCyaZXjECUFaGzeD/9im9jmefZiVy+5GU4wSkfD4YEOCoh+Mrln KvQPO6h0d8Py/u2UBmwaWCpg4yeB2lc39oTyU6EPvbe3e10fsb0pfdInXqPNomt0 PiMWviLe31TWBb4uw1664rhcHSpmfDpKEtAmWO/fOnl2gQqWCYVY+GHdpYI9h65o XYcm8PUZ2Knl/x0XZnnmTSZGkyf8GdbBpNFfe3V3twH7uirkxXV7KTxjyH93D8DO z8tCOtBncCMWsiHPCJ+Al5Q/c5Ymu6/D6MzmGeQuNWAl5saaudUJVXz0lKiixkVP zJDdCSBavMijmAK4sjr0PGT+fQCTVAJOvO5gWW79PfIbZJCIEV+QriCpIa0wXmQ3 OXBQgdAAK1M+BE2TLUm5LUw5eWhjzbUbrNU0vchluy+UGbgw0hT10J0hATAlZaIM Y0BCnZl7qkBVrbrX+Dm+qoMRawgqt7DmK5OxBgH9LEErm8ryTEg0wtOANr5DDwMF TretjFwAnMhuz1kguvCAePd3JF0LRoEaf5dW/h4hz/sX1ldGMK1zm2B4nU6Yst8v RaEzDvBbxYAvRtWQO1i8wDOv8/VTpAGXfTskwofmxUZ5g0bqhiCgEw0PpMyN82Rw E2nsdrzV06zeSQrOPUGuy2vypuDMiqdguLsjKJQb6igHl1ThhXU1Nr3UHit1HCVL p0awZnaRyw== =i7by -----END PGP SIGNATURE----- Merge tag 'v3.8.0a4' Python 3.8.0a4
This commit is contained in:
commit
bbbdc2bb65
@ -20,10 +20,10 @@
|
||||
#define PY_MINOR_VERSION 8
|
||||
#define PY_MICRO_VERSION 0
|
||||
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
|
||||
#define PY_RELEASE_SERIAL 3
|
||||
#define PY_RELEASE_SERIAL 4
|
||||
|
||||
/* Version as a string */
|
||||
#define PY_VERSION "3.8.0a3+"
|
||||
#define PY_VERSION "3.8.0a4"
|
||||
/*--end constants--*/
|
||||
|
||||
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
|
||||
|
@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Mon Mar 25 20:32:23 2019
|
||||
# Autogenerated by Sphinx on Mon May 6 20:27:55 2019
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
@ -162,20 +162,21 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'\n'
|
||||
' Note: If the object is a class instance and the attribute '
|
||||
'reference\n'
|
||||
' occurs on both sides of the assignment operator, the RHS '
|
||||
'expression,\n'
|
||||
' "a.x" can access either an instance attribute or (if no '
|
||||
'instance\n'
|
||||
' attribute exists) a class attribute. The LHS target "a.x" '
|
||||
'is always\n'
|
||||
' set as an instance attribute, creating it if necessary. '
|
||||
'Thus, the\n'
|
||||
' two occurrences of "a.x" do not necessarily refer to the '
|
||||
'same\n'
|
||||
' attribute: if the RHS expression refers to a class '
|
||||
'attribute, the\n'
|
||||
' LHS creates a new instance attribute as the target of the\n'
|
||||
' assignment:\n'
|
||||
' occurs on both sides of the assignment operator, the '
|
||||
'right-hand side\n'
|
||||
' expression, "a.x" can access either an instance attribute or '
|
||||
'(if no\n'
|
||||
' instance attribute exists) a class attribute. The left-hand '
|
||||
'side\n'
|
||||
' target "a.x" is always set as an instance attribute, '
|
||||
'creating it if\n'
|
||||
' necessary. Thus, the two occurrences of "a.x" do not '
|
||||
'necessarily\n'
|
||||
' refer to the same attribute: if the right-hand side '
|
||||
'expression\n'
|
||||
' refers to a class attribute, the left-hand side creates a '
|
||||
'new\n'
|
||||
' instance attribute as the target of the assignment:\n'
|
||||
'\n'
|
||||
' class Cls:\n'
|
||||
' x = 3 # class variable\n'
|
||||
@ -3302,11 +3303,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'"str.format()"\n'
|
||||
' method, to produce a “formatted” string representation '
|
||||
'of an\n'
|
||||
' object. The "format_spec" argument is a string that '
|
||||
' object. The *format_spec* argument is a string that '
|
||||
'contains a\n'
|
||||
' description of the formatting options desired. The '
|
||||
'interpretation\n'
|
||||
' of the "format_spec" argument is up to the type '
|
||||
' of the *format_spec* argument is up to the type '
|
||||
'implementing\n'
|
||||
' "__format__()", however most classes will either '
|
||||
'delegate\n'
|
||||
@ -6189,8 +6190,8 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'end up importing "pkg.mod". If you execute "from ..subpkg2 import '
|
||||
'mod"\n'
|
||||
'from within "pkg.subpkg1" you will import "pkg.subpkg2.mod". The\n'
|
||||
'specification for relative imports is contained within **PEP '
|
||||
'328**.\n'
|
||||
'specification for relative imports is contained in the Package\n'
|
||||
'Relative Imports section.\n'
|
||||
'\n'
|
||||
'"importlib.import_module()" is provided to support applications '
|
||||
'that\n'
|
||||
@ -8002,11 +8003,11 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'"str.format()"\n'
|
||||
' method, to produce a “formatted” string representation of '
|
||||
'an\n'
|
||||
' object. The "format_spec" argument is a string that '
|
||||
' object. The *format_spec* argument is a string that '
|
||||
'contains a\n'
|
||||
' description of the formatting options desired. The '
|
||||
'interpretation\n'
|
||||
' of the "format_spec" argument is up to the type '
|
||||
' of the *format_spec* argument is up to the type '
|
||||
'implementing\n'
|
||||
' "__format__()", however most classes will either '
|
||||
'delegate\n'
|
||||
@ -8768,15 +8769,15 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'When a class definition is executed, the following steps '
|
||||
'occur:\n'
|
||||
'\n'
|
||||
'* MRO entries are resolved\n'
|
||||
'* MRO entries are resolved;\n'
|
||||
'\n'
|
||||
'* the appropriate metaclass is determined\n'
|
||||
'* the appropriate metaclass is determined;\n'
|
||||
'\n'
|
||||
'* the class namespace is prepared\n'
|
||||
'* the class namespace is prepared;\n'
|
||||
'\n'
|
||||
'* the class body is executed\n'
|
||||
'* the class body is executed;\n'
|
||||
'\n'
|
||||
'* the class object is created\n'
|
||||
'* the class object is created.\n'
|
||||
'\n'
|
||||
'\n'
|
||||
'Resolving MRO entries\n'
|
||||
@ -8806,16 +8807,16 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'\n'
|
||||
'* if no bases and no explicit metaclass are given, then '
|
||||
'"type()" is\n'
|
||||
' used\n'
|
||||
' used;\n'
|
||||
'\n'
|
||||
'* if an explicit metaclass is given and it is *not* an '
|
||||
'instance of\n'
|
||||
' "type()", then it is used directly as the metaclass\n'
|
||||
' "type()", then it is used directly as the metaclass;\n'
|
||||
'\n'
|
||||
'* if an instance of "type()" is given as the explicit '
|
||||
'metaclass, or\n'
|
||||
' bases are defined, then the most derived metaclass is '
|
||||
'used\n'
|
||||
'used.\n'
|
||||
'\n'
|
||||
'The most derived metaclass is selected from the explicitly '
|
||||
'specified\n'
|
||||
@ -8931,7 +8932,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'with the\n'
|
||||
' class being defined and the assigned name of that '
|
||||
'particular\n'
|
||||
' descriptor; and\n'
|
||||
' descriptor;\n'
|
||||
'\n'
|
||||
'* finally, the "__init_subclass__()" hook is called on the '
|
||||
'immediate\n'
|
||||
@ -9030,7 +9031,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'\n'
|
||||
'One can implement the generic class syntax as specified by '
|
||||
'**PEP 484**\n'
|
||||
'(for example "List[int]") by defining a special method\n'
|
||||
'(for example "List[int]") by defining a special method:\n'
|
||||
'\n'
|
||||
'classmethod object.__class_getitem__(cls, key)\n'
|
||||
'\n'
|
||||
@ -9672,6 +9673,14 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'capitalized\n'
|
||||
' and the rest lowercased.\n'
|
||||
'\n'
|
||||
' Changed in version 3.8: The first character is now put '
|
||||
'into\n'
|
||||
' titlecase rather than uppercase. This means that '
|
||||
'characters like\n'
|
||||
' digraphs will only have their first letter capitalized, '
|
||||
'instead of\n'
|
||||
' the full character.\n'
|
||||
'\n'
|
||||
'str.casefold()\n'
|
||||
'\n'
|
||||
' Return a casefolded copy of the string. Casefolded '
|
||||
@ -10416,9 +10425,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
' >>> def titlecase(s):\n'
|
||||
' ... return re.sub(r"[A-Za-z]+(\'[A-Za-z]+)?",\n'
|
||||
' ... lambda mo: '
|
||||
'mo.group(0)[0].upper() +\n'
|
||||
' ... '
|
||||
'mo.group(0)[1:].lower(),\n'
|
||||
'mo.group(0).capitalize(),\n'
|
||||
' ... s)\n'
|
||||
' ...\n'
|
||||
' >>> titlecase("they\'re bill\'s friends.")\n'
|
||||
@ -11286,17 +11293,17 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'| |\n'
|
||||
' | | unavailable; not inherited by '
|
||||
'| |\n'
|
||||
' | | subclasses '
|
||||
' | | subclasses. '
|
||||
'| |\n'
|
||||
' '
|
||||
'+---------------------------+---------------------------------+-------------+\n'
|
||||
' | "__name__" | The function’s name '
|
||||
' | "__name__" | The function’s name. '
|
||||
'| Writable |\n'
|
||||
' '
|
||||
'+---------------------------+---------------------------------+-------------+\n'
|
||||
' | "__qualname__" | The function’s *qualified name* '
|
||||
' | "__qualname__" | The function’s *qualified '
|
||||
'| Writable |\n'
|
||||
' | | New in version 3.3. '
|
||||
' | | name*. New in version 3.3. '
|
||||
'| |\n'
|
||||
' '
|
||||
'+---------------------------+---------------------------------+-------------+\n'
|
||||
@ -11316,7 +11323,7 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'| |\n'
|
||||
' | | or "None" if no arguments have '
|
||||
'| |\n'
|
||||
' | | a default value '
|
||||
' | | a default value. '
|
||||
'| |\n'
|
||||
' '
|
||||
'+---------------------------+---------------------------------+-------------+\n'
|
||||
@ -12172,7 +12179,13 @@ topics = {'assert': 'The "assert" statement\n'
|
||||
'\n'
|
||||
' "fromkeys()" is a class method that returns a new '
|
||||
'dictionary.\n'
|
||||
' *value* defaults to "None".\n'
|
||||
' *value* defaults to "None". All of the values refer '
|
||||
'to just a\n'
|
||||
' single instance, so it generally doesn’t make sense '
|
||||
'for *value*\n'
|
||||
' to be a mutable object such as an empty list. To get '
|
||||
'distinct\n'
|
||||
' values, use a dict comprehension instead.\n'
|
||||
'\n'
|
||||
' get(key[, default])\n'
|
||||
'\n'
|
||||
|
1421
Misc/NEWS.d/3.8.0a4.rst
Normal file
1421
Misc/NEWS.d/3.8.0a4.rst
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,2 +0,0 @@
|
||||
Remove references to "aix3" and "aix4".
|
||||
Patch by M. Felt.
|
@ -1,3 +0,0 @@
|
||||
``python-config --ldflags`` no longer includes flags of the
|
||||
``LINKFORSHARED`` variable. The ``LINKFORSHARED`` variable must only be used
|
||||
to build executables.
|
@ -1 +0,0 @@
|
||||
Fix regression introduced in bpo-36146 refactoring setup.py
|
@ -1 +0,0 @@
|
||||
setup.py now correctly reports missing OpenSSL headers and libraries again.
|
@ -1,6 +0,0 @@
|
||||
Release builds and debug builds are now ABI compatible: defining the
|
||||
``Py_DEBUG`` macro no longer implies the ``Py_TRACE_REFS`` macro, which
|
||||
introduces the only ABI incompatibility. The ``Py_TRACE_REFS`` macro, which
|
||||
adds the :func:`sys.getobjects` function and the :envvar:`PYTHONDUMPREFS`
|
||||
environment variable, can be set using the new ``./configure --with-trace-refs``
|
||||
build option.
|
@ -1,2 +0,0 @@
|
||||
``make tags`` and ``make TAGS`` now also parse ``Modules/_io/*.c`` and
|
||||
``Modules/_io/*.h``.
|
@ -1,8 +0,0 @@
|
||||
Add ``-fmax-type-align=8`` to CFLAGS when clang compiler is detected. The
|
||||
pymalloc memory allocator aligns memory on 8 bytes. On x86-64, clang expects
|
||||
alignment on 16 bytes by default and so uses MOVAPS instruction which can
|
||||
lead to segmentation fault. Instruct clang that Python is limited to
|
||||
alignemnt on 8 bytes to use MOVUPS instruction instead: slower but don't
|
||||
trigger a SIGSEGV if the memory is not aligned on 16 bytes. Sadly, the flag
|
||||
must be added to ``CFLAGS`` and not just ``CFLAGS_NODIST``, since third party C
|
||||
extensions can have the same issue.
|
@ -1 +0,0 @@
|
||||
Don't build the ``_crypt`` extension on VxWorks.
|
@ -1,5 +0,0 @@
|
||||
Change ``PyAPI_FUNC(type)``, ``PyAPI_DATA(type)`` and ``PyMODINIT_FUNC``
|
||||
macros of ``pyport.h`` when ``Py_BUILD_CORE_MODULE`` is defined. The
|
||||
``Py_BUILD_CORE_MODULE`` define must be now be used to build a C extension
|
||||
as a dynamic library accessing Python internals: export the PyInit_xxx()
|
||||
function in DLL exports on Windows.
|
@ -1,3 +0,0 @@
|
||||
``./configure --with-pymalloc`` no longer adds the ``m`` flag to SOABI
|
||||
(sys.implementation.cache_tag). Enabling or disabling pymalloc has no impact
|
||||
on the ABI.
|
@ -1,12 +0,0 @@
|
||||
On Unix, C extensions are no longer linked to libpython except on Android.
|
||||
|
||||
It is now possible for a statically linked Python to load a C extension built
|
||||
using a shared library Python.
|
||||
|
||||
When Python is embedded, ``libpython`` must not be loaded with ``RTLD_LOCAL``,
|
||||
but ``RTLD_GLOBAL`` instead. Previously, using ``RTLD_LOCAL``, it was already
|
||||
not possible to load C extensions which were not linked to ``libpython``, such
|
||||
as C extensions of the standard library built by the ``*shared*`` section of
|
||||
``Modules/Setup``.
|
||||
|
||||
distutils, python-config and python-config.py have been modified.
|
@ -1 +0,0 @@
|
||||
Remove the stale scriptsinstall Makefile target.
|
@ -1,4 +0,0 @@
|
||||
Modify ``PyObject_Init`` to correctly increase the refcount of heap-
|
||||
allocated Type objects. Also fix the refcounts of the heap-allocated types
|
||||
that were either doing this manually or not decreasing the type's refcount
|
||||
in tp_dealloc
|
@ -1,5 +0,0 @@
|
||||
Fixed an accidental change to the datetime C API where the arguments to the
|
||||
:c:func:`PyDate_FromTimestamp` function were incorrectly interpreted as a
|
||||
single timestamp rather than an arguments tuple, which causes existing code to
|
||||
start raising :exc:`TypeError`. The backwards-incompatible change was only
|
||||
present in alpha releases of Python 3.8. Patch by Paul Ganssle.
|
@ -1,6 +0,0 @@
|
||||
Since Python 3.7.0, calling :c:func:`Py_DecodeLocale` before
|
||||
:c:func:`Py_Initialize` produces mojibake if the ``LC_CTYPE`` locale is coerced
|
||||
and/or if the UTF-8 Mode is enabled by the user configuration. The LC_CTYPE
|
||||
coercion and UTF-8 Mode are now disabled by default to fix the mojibake issue.
|
||||
They must now be enabled explicitly (opt-in) using the new
|
||||
:c:func:`_Py_PreInitialize` API with ``_PyPreConfig``.
|
@ -1,5 +0,0 @@
|
||||
Change the value of ``CLEANBYTE``, ``DEADDYTE`` and ``FORBIDDENBYTE`` internal
|
||||
constants used by debug hooks on Python memory allocators
|
||||
(:c:func:`PyMem_SetupDebugHooks` function). Byte patterns ``0xCB``, ``0xDB``
|
||||
and ``0xFB`` have been replaced with ``0xCD``, ``0xDD`` and ``0xFD`` to use the
|
||||
same values than Windows CRT debug ``malloc()`` and ``free()``.
|
@ -1,2 +0,0 @@
|
||||
:c:macro:`PyDoc_VAR(name)` and :c:macro:`PyDoc_STRVAR(name,str)` now create
|
||||
``static const char name[]`` instead of ``static char name[]``. Patch by Inada Naoki.
|
@ -1,2 +0,0 @@
|
||||
Fix memory leak in :c:func:`Py_SetStandardStreamEncoding`: release memory if
|
||||
the function is called twice.
|
@ -1,2 +0,0 @@
|
||||
Add missing :c:func:`PyObject_GC_Track` calls in the :mod:`pickle` module.
|
||||
Patch by Zackery Spytz.
|
@ -1,2 +0,0 @@
|
||||
Regenerate :mod:`keyword` from the Grammar and Tokens file using pgen. Patch
|
||||
by Pablo Galindo.
|
@ -1,2 +0,0 @@
|
||||
Include node names in ``ParserError`` messages, instead of numeric IDs.
|
||||
Patch by A. Skrobov.
|
@ -1 +0,0 @@
|
||||
Fix a possible reference leak in :func:`itertools.count`.
|
@ -1 +0,0 @@
|
||||
Fixed TypeError message in classmethoddescr_call.
|
@ -1 +0,0 @@
|
||||
Fix a possible double ``PyMem_FREE()`` due to tokenizer.c's ``tok_nextc()``.
|
@ -1,5 +0,0 @@
|
||||
Changing ``dict`` keys during iteration of the dict itself, ``keys()``,
|
||||
``values()``, or ``items()`` will now be detected in certain corner cases where
|
||||
keys are deleted/added so that the number of keys isn't changed.
|
||||
A `RuntimeError` will be raised after ``len(dict)`` iterations.
|
||||
Contributed by Thomas Perl.
|
@ -1,2 +0,0 @@
|
||||
Fixed support of the surrogatepass error handler in the UTF-8 incremental
|
||||
decoder.
|
@ -1,2 +0,0 @@
|
||||
Fix running script with encoding cookie and LF line ending
|
||||
may fail on Windows.
|
@ -1 +0,0 @@
|
||||
Fix signed integer overflow in _ctypes.c's ``PyCArrayType_new()``.
|
@ -1,4 +0,0 @@
|
||||
:c:func:`PyEval_AcquireLock` and :c:func:`PyEval_AcquireThread` now
|
||||
terminate the current thread if called while the interpreter is
|
||||
finalizing, making them consistent with :c:func:`PyEval_RestoreThread`,
|
||||
:c:func:`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`.
|
@ -1,2 +0,0 @@
|
||||
Implement :pep:`570` (Python positional-only parameters). Patch by Pablo
|
||||
Galindo.
|
@ -1,2 +0,0 @@
|
||||
Change str.capitalize to use titlecase for the first character instead of
|
||||
uppercase.
|
@ -1,5 +0,0 @@
|
||||
On AIX, :attr:`sys.platform` doesn't contain the major version anymore.
|
||||
Always return ``'aix'``, instead of ``'aix3'`` .. ``'aix7'``. Since
|
||||
older Python versions include the version number, it is recommended to
|
||||
always use ``sys.platform.startswith('aix')``.
|
||||
Contributed by M. Felt.
|
@ -1,5 +0,0 @@
|
||||
Debug memory allocators: disable serialno field by default from debug hooks on
|
||||
Python memory allocators to reduce the memory footprint by 5%. Enable
|
||||
:mod:`tracemalloc` to get the traceback where a memory block has been allocated
|
||||
when a fatal memory error is logged to decide where to put a breakpoint.
|
||||
Compile Python with ``PYMEM_DEBUG_SERIALNO`` defined to get back the field.
|
@ -1,2 +0,0 @@
|
||||
``dict.pop()`` is now up to 33% faster thanks to Argument Clinic. Patch by
|
||||
Inada Naoki.
|
@ -1,2 +0,0 @@
|
||||
Remove parser headers and related function declarations that lack
|
||||
implementations after the removal of pgen.
|
@ -1,2 +0,0 @@
|
||||
Fix Python Initialization code on FreeBSD to detect properly when stdin file
|
||||
descriptor (fd 0) is invalid.
|
@ -1,2 +0,0 @@
|
||||
In debug build, import now also looks for C extensions compiled in release
|
||||
mode and for C extensions compiled in the stable ABI.
|
@ -1,3 +0,0 @@
|
||||
The :func:`~inspect.getfullargspec` function in the :mod:`inspect` module is
|
||||
deprecated in favor of the :func:`inspect.signature` API. Contributed by
|
||||
Pablo Galindo.
|
@ -1 +0,0 @@
|
||||
Added re.Match.groupdict example to regex HOWTO.
|
@ -1 +0,0 @@
|
||||
Add glossary entry for 'magic method'.
|
@ -1 +0,0 @@
|
||||
@typing.type_check_only now allows type stubs to mark functions and classes not available during runtime.
|
@ -1 +0,0 @@
|
||||
Updates the docs.python.org page with the addition of a 'Contributing to Docs' link at the end of the page (between 'Reporting Bugs' and 'About Documentation'). Updates the 'Found a Bug' page with additional links and information in the Documentation Bugs section.
|
@ -1 +0,0 @@
|
||||
Added Documention for PyInterpreterState_Main().
|
@ -1,2 +0,0 @@
|
||||
Using the code of the ``Tools/scripts/serve.py`` script as an example in the
|
||||
:mod:`wsgiref` documentation. Contributed by Stéphane Wirtel.
|
@ -1,3 +0,0 @@
|
||||
Avoid the duplication of code from ``Tools/scripts/serve.py`` in using the
|
||||
:rst:dir:`literalinclude` directive for the basic wsgiref-based web server in the
|
||||
documentation of :mod:`wsgiref`. Contributed by Stéphane Wirtel.
|
@ -1,2 +0,0 @@
|
||||
New documentation translation: `Simplified Chinese
|
||||
<https://docs.python.org/zh-cn/>`_.
|
@ -1 +0,0 @@
|
||||
Add docstring for io.IOBase.writelines().
|
@ -1 +0,0 @@
|
||||
Document relative imports
|
@ -1 +0,0 @@
|
||||
Remove obsolete comments from docstrings in fractions.Fraction
|
@ -1,2 +0,0 @@
|
||||
Fix starting IDLE with pyshell. Add idlelib.pyshell alias at top; remove
|
||||
pyshell alias at bottom. Remove obsolete __name__=='__main__' command.
|
@ -1,2 +0,0 @@
|
||||
Fix ``setup.py check --restructuredtext`` for
|
||||
files containing ``include`` directives.
|
@ -1 +0,0 @@
|
||||
Fix the multiprocessing.semaphore_tracker so it is reused by child processes
|
@ -1,3 +0,0 @@
|
||||
Do not raise AttributeError when calling the inspect functions
|
||||
isgeneratorfunction, iscoroutinefunction, isasyncgenfunction on a method
|
||||
created from an arbitrary callable. Instead, return False.
|
@ -1,3 +0,0 @@
|
||||
Implemented Happy Eyeballs in `asyncio.create_connection()`. Added two new
|
||||
arguments, *happy_eyeballs_delay* and *interleave*,
|
||||
to specify Happy Eyeballs behavior.
|
@ -1 +0,0 @@
|
||||
Remove stale unix datagram socket before binding
|
@ -1,2 +0,0 @@
|
||||
:func:`xml.sax.parse` now supports :term:`path-like <path-like object>`.
|
||||
Patch by Mickaël Schoentgen.
|
@ -1,2 +0,0 @@
|
||||
:class:`wsgiref.handlers.BaseHandler` now handles abrupt client connection
|
||||
terminations gracefully. Patch by Petter Strandmark.
|
@ -1,2 +0,0 @@
|
||||
Don't return deleted attributes when calling dir on a
|
||||
:class:`unittest.mock.Mock`.
|
@ -1,2 +0,0 @@
|
||||
Add transparency methods to :class:`tkinter.PhotoImage`. Patch by Zackery
|
||||
Spytz.
|
@ -1 +0,0 @@
|
||||
Fix potential resource warnings in distutils. Patch by Mickaël Schoentgen.
|
@ -1,2 +0,0 @@
|
||||
Add support for :func:`classmethod` and :func:`staticmethod` to
|
||||
:func:`unittest.mock.create_autospec`. Initial patch by Felipe Ochoa.
|
@ -1,4 +0,0 @@
|
||||
Added :meth:`~socket.create_server()` and :meth:`~socket.has_dualstack_ipv6()`
|
||||
convenience functions to automate the necessary tasks usually involved when
|
||||
creating a server socket, including accepting both IPv4 and IPv6 connections
|
||||
on the same socket. (Contributed by Giampaolo Rodola in :issue:`17561`.)
|
@ -1,2 +0,0 @@
|
||||
:mod:`modulefinder` no longer crashes when encountering syntax errors in followed imports.
|
||||
Patch by Brandt Bucher.
|
@ -1,2 +0,0 @@
|
||||
:mod:`modulefinder` correctly handles modules that have the same name as a bad package.
|
||||
Patch by Brandt Bucher.
|
@ -1,2 +0,0 @@
|
||||
:mod:`modulefinder` no longer depends on the deprecated :mod:`imp` module, and the initializer for :class:`modulefinder.ModuleFinder` now has immutable default arguments.
|
||||
Patch by Brandt Bucher.
|
@ -1,4 +0,0 @@
|
||||
Added new alternate constructors :meth:`datetime.date.fromisocalendar` and
|
||||
:meth:`datetime.datetime.fromisocalendar`, which construct date objects from
|
||||
ISO year, week number and weekday; these are the inverse of each class's
|
||||
``isocalendar`` method. Patch by Paul Ganssle.
|
@ -1,2 +0,0 @@
|
||||
Added support for keyword arguments `default_namespace` and `xml_declaration` in functions
|
||||
ElementTree.tostring() and ElementTree.tostringlist().
|
@ -1 +0,0 @@
|
||||
Add time module support and fix test_time faiures for VxWorks.
|
@ -1,2 +0,0 @@
|
||||
The :meth:`imap.IMAP4.logout` method no longer ignores silently arbitrary
|
||||
exceptions.
|
@ -1,4 +0,0 @@
|
||||
Calling ``stop()`` on an unstarted or stopped :func:`unittest.mock.patch`
|
||||
object will now return `None` instead of raising :exc:`RuntimeError`,
|
||||
making the method idempotent.
|
||||
Patch by Karthikeyan Singaravelan.
|
@ -1,2 +0,0 @@
|
||||
inspect.getdoc() can now find docstrings for member objects when __slots__
|
||||
is a dictionary.
|
@ -1,2 +0,0 @@
|
||||
Fixed wrong indentation writing for CDATA section in xml.dom.minidom.
|
||||
Patch by Vladimir Surjaninov.
|
@ -1 +0,0 @@
|
||||
Errors during writing to a ZIP file no longer prevent to properly close it.
|
@ -1 +0,0 @@
|
||||
Stop rejecting IPv4 octets for being ambiguously octal. Leading zeros are ignored, and no longer are assumed to specify octal octets. Octets are always decimal numbers. Octets must still be no more than three digits, including leading zeroes.
|
@ -1,2 +0,0 @@
|
||||
``os.path.normcase()`` relies on ``os.fspath()`` to check the type of its argument. Redundant checks have been removed from its ``posixpath.normcase()`` and ``ntpath.normcase()`` implementations.
|
||||
Patch by Wolfgang Maier.
|
@ -1 +0,0 @@
|
||||
Add statistics.geometric_mean().
|
@ -1,5 +0,0 @@
|
||||
Deprecated passing required arguments like *func* as keyword arguments
|
||||
in functions which should accept arbitrary keyword arguments and pass them
|
||||
to other function. Arbitrary keyword arguments (even with names "self" and
|
||||
"func") can now be passed to these functions if the required arguments are
|
||||
passed as positional arguments.
|
@ -1 +0,0 @@
|
||||
If *debuglevel* is set to >0 in :mod:`http.client`, print all values for headers with multiple values for the same header name. Patch by Matt Houglum.
|
@ -1,2 +0,0 @@
|
||||
Optimized ``http.client.HTTPResponse.read()`` for large response. Patch by
|
||||
Inada Naoki.
|
@ -1 +0,0 @@
|
||||
Add statistics.quantiles()
|
@ -1,2 +0,0 @@
|
||||
Improve error message when trying to open existing DBM database that
|
||||
actually doesn't exist. Patch by Marco Rougeth.
|
@ -1 +0,0 @@
|
||||
Fix :func:`time.mktime` error handling on AIX for year before 1970.
|
@ -1 +0,0 @@
|
||||
Set backlog=None as the default for socket.create_server.
|
@ -1,2 +0,0 @@
|
||||
The random module now prefers the lean internal _sha512 module over hashlib
|
||||
for seed(version=2) to optimize import time.
|
@ -1,2 +0,0 @@
|
||||
``json.loads`` now emits ``DeprecationWarning`` when ``encoding`` option is
|
||||
specified. Patch by Matthias Bussonnier.
|
@ -1,4 +0,0 @@
|
||||
The ``_lsprof`` module now uses internal timer same to ``time.perf_counter()`` by default.
|
||||
``gettimeofday(2)`` was used on Unix. New timer has better resolution on most Unix
|
||||
platforms and timings are no longer impacted by system clock updates since ``perf_counter()``
|
||||
is monotonic. Patch by Inada Naoki.
|
@ -1,3 +0,0 @@
|
||||
In development mode (:option:`-X` ``dev``) and in debug build, the
|
||||
:class:`io.IOBase` destructor now logs ``close()`` exceptions. These exceptions
|
||||
are silent by default in release mode.
|
@ -1,2 +0,0 @@
|
||||
Fix ``isinstance`` check for Mock objects with spec when the code is
|
||||
executed under tracing. Patch by Karthikeyan Singaravelan.
|
@ -1 +0,0 @@
|
||||
Fix :mod:`asyncio` wait() not removing callback if exception
|
@ -1,3 +0,0 @@
|
||||
Path expressions in xml.etree.ElementTree can now avoid explicit namespace
|
||||
prefixes for tags (or the "{namespace}tag" notation) by passing a default
|
||||
namespace with an empty string prefix.
|
@ -1 +0,0 @@
|
||||
improve performance of ``IPNetwork.__contains__()``
|
@ -1,5 +0,0 @@
|
||||
:func:`shutil.which` and :func:`distutils.spawn.find_executable` now use
|
||||
``os.confstr("CS_PATH")`` if available instead of :data:`os.defpath`, if the
|
||||
``PATH`` environment variable is not set. Moreover, don't use
|
||||
``os.confstr("CS_PATH")`` nor :data:`os.defpath` if the ``PATH`` environment
|
||||
variable is set to an empty string.
|
@ -1,4 +0,0 @@
|
||||
Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is ``None`` or an
|
||||
empty string: use :func:`os.getcwd` to initialize ``project_base``. Fix
|
||||
also the distutils build command: don't use :data:`sys.executable` if it is
|
||||
``None`` or an empty string.
|
@ -1,4 +0,0 @@
|
||||
The C version of functools.lru_cache() was treating calls with an empty
|
||||
``**kwargs`` dictionary as being distinct from calls with no keywords at all.
|
||||
This did not result in an incorrect answer, but it did trigger an unexpected
|
||||
cache miss.
|
@ -1,3 +0,0 @@
|
||||
The TreeBuilder and XMLPullParser in xml.etree.ElementTree gained support
|
||||
for parsing comments and processing instructions.
|
||||
Patch by Stefan Behnel.
|
@ -1,3 +0,0 @@
|
||||
The XMLParser() in xml.etree.ElementTree provides namespace prefix context to the
|
||||
parser target if it defines the callback methods "start_ns()" and/or "end_ns()".
|
||||
Patch by Stefan Behnel.
|
@ -1 +0,0 @@
|
||||
Add missing matrix multiplication operator support to weakref.proxy.
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user