Kaydet (Commit) 6e41cd95 authored tarafından Ned Deily's avatar Ned Deily

Update NEWS, docs, and patchlevel for 3.7.0b1

üst 1ca2ffdc
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
#define PY_MAJOR_VERSION 3 #define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 7 #define PY_MINOR_VERSION 7
#define PY_MICRO_VERSION 0 #define PY_MICRO_VERSION 0
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
#define PY_RELEASE_SERIAL 4 #define PY_RELEASE_SERIAL 1
/* Version as a string */ /* Version as a string */
#define PY_VERSION "3.7.0a4+" #define PY_VERSION "3.7.0b1"
/*--end constants--*/ /*--end constants--*/
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2. /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
......
This diff is collapsed.
This diff is collapsed.
If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set,
:mod:`py_compile` will always create hash-based ``.pyc`` files.
Use autoconf to detect OpenSSL libs, headers and supported features. The
ax_check_openssl M4 macro uses pkg-config to locate OpenSSL and falls back
to manual search.
Fix segfault of the crypt module when libxcrypt is provided instead of
libcrypt at the system.
Add C API access to the ``datetime.timezone`` constructor and
``datetime.timzone.UTC`` singleton.
Fix uninitialized variable 'res' in the C implementation of os.dup2. Patch
by Stéphane Wirtel
Add a new contextmanager to the gc module that temporarily disables the GC
and restores the previous state. The implementation is done in C to assure
atomicity and speed.
Leading whitespace is now correctly ignored when generating suggestions
for converting Py2 print statements to Py3 builtin print function calls.
Patch by Sanyam Khurana.
Py_Initialize() now creates the GIL. The GIL is no longer created "on demand"
to fix a race condition when PyGILState_Ensure() is called in a non-Python
thread.
``repr()`` on a dict containing its own ``values()`` or ``items()`` no
longer raises ``RecursionError``; OrderedDict similarly. Instead, use
``...``, as for other recursive structures. Patch by Ben North.
Improved frozenset() hash to create more distinct hash values when faced
with datasets containing many similar values.
``hasattr(obj, name)`` and ``getattr(obj, name, default)`` are about 4 times
faster than before when ``name`` is not found and ``obj`` doesn't override
``__getattr__`` or ``__getattribute__``.
Expose preadv and pwritev system calls in the os module. Patch by Pablo Galindo
Added built-in support for tracking the origin of coroutine objects; see
sys.set_coroutine_origin_tracking_depth and CoroutineType.cr_origin. This
replaces the asyncio debug mode's use of coroutine wrapping for native
coroutine objects.
Enforce PEP 479 for all code.
This means that manually raising a StopIteration exception from a generator
is prohibited for all code, regardless of whether 'from __future__ import
generator_stop' was used or not.
Add ``.isascii()`` method to ``str``, ``bytes`` and ``bytearray``.
It can be used to test that string contains only ASCII characters.
The locals() dictionary now displays in the lexical order that variables
were defined. Previously, the order was reversed.
Python now explicitly preserves the definition order of keyword-only
parameters. It's always preserved their order, but this behavior was never
guaranteed before; this behavior is now guaranteed and tested.
Improve suggestion when the Python 2 form of print statement is either
present on the same line as the header of a compound statement or else
terminated by a semi-colon instead of a newline. Patch by Nitish Chandra.
Optimize list.sort() and sorted() by using type specialized comparisons when
possible.
Pdb and other debuggers dependent on bdb.py will correctly step over (next
command) native coroutines. Patch by Pablo Galindo.
Fix coroutine's ResourceWarning when there's an active error set when it's
being finalized.
Explain real behaviour of sys.settrace and sys.setprofile and their C-API counterparts
regarding which type of events are received in each function. Patch by Pablo Galindo Salgado.
Complete the C API documentation, profiling and tracing part with the newly
added per-opcode events.
Add references to some commands in the documentation of Pdb. Patch by
Stéphane Wirtel
Add a queue.SimpleQueue class, an unbounded FIFO queue with a reentrant C
implementation of put().
The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and
X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses. Subject
common name fallback can be disabled with
SSLContext.hostname_checks_common_name.
Use super().method instead of socket.method in SSLSocket. They were
there most likely for legacy reasons.
The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE``
locale to the ``LC_NUMERIC`` locale to decode ``decimal_point`` and
``thousands_sep`` byte strings if they are non-ASCII or longer than 1 byte, and
the ``LC_NUMERIC`` locale is different than the ``LC_CTYPE`` locale. This
temporary change affects other threads.
Same change for the :meth:`str.format` method when formatting a number
(:class:`int`, :class:`float`, :class:`float` and subclasses) with the ``n``
type (ex: ``'{:n}'.format(1234)``).
The *args* argument of subprocess.Popen can now be a
:term:`path-like object`. If *args* is given as a
sequence, it's first element can now be a
:term:`path-like object` as well.
Add contextlib.AsyncExitStack. Patch by Alexander Mohr and Ilya Kulakov.
Add :mod:`importlib.resources` and :class:`importlib.abc.ResourceReader` as
the unified API for reading resources contained within packages. Loaders
wishing to support resource reading must implement the
:meth:`get_resource_reader()` method. File-based and zipimport-based loaders
both implement these APIs. :class:`importlib.abc.ResourceLoader` is
deprecated in favor of these new APIs.
Added seek and tell to the ZipExtFile class. This only works if the file
object used to open the zipfile is seekable.
Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size.
Improved speed of :class:`datetime.date` and :class:`datetime.datetime`
alternate constructors.
Fix bug where :meth:`datetime.datetime.fromtimestamp` did not call __new__
in :class:`datetime.datetime` subclasses.
Sockets now auto-detect family, type and protocol from file descriptor by
default.
The hmac module now has hmac.digest(), which provides an optimized HMAC
digest.
The subprocess module is now more graceful when handling a Ctrl-C
KeyboardInterrupt during subprocess.call, subprocess.run, or a Popen context
manager. It now waits a short amount of time for the child (presumed to
have also gotten the SIGINT) to exit, before continuing the
KeyboardInterrupt exception handling. This still includes a SIGKILL in the
call() and run() APIs, but at least the child had a chance first.
Pickling with protocol 4 no longer creates too small frames.
glibc has removed Sun RPC. Use replacement libtirpc headers and library in
nis module.
collections.abc.ValuesView now inherits from collections.abc.Collection.
The nis module is now compatible with new libnsl and headers location.
Fix memory leak in asyncio.Queue, when the queue has limited size and it is
full, the cancelation of queue.put() can cause a memory leak. Patch by: José
Melero.
Use queue.SimpleQueue() in places where it can be invoked from a weakref
callback.
Add ``_ignore_`` to ``Enum`` so temporary variables can be used during class
construction without being turned into members.
``concurrent.futures`` imports ``ThreadPoolExecutor`` and
``ProcessPoolExecutor`` lazily (using :pep:`562`).
It makes ``import asyncio`` about 15% faster because asyncio
uses only ``ThreadPoolExecutor`` by default.
uuid.uuid1 no longer raises an exception if a 64-bit hardware address is
encountered.
distutils' upload command no longer corrupts tar files ending with a CR byte,
and no longer tries to convert CR to CRLF in any of the upload text fields.
Refactor decimal module to use contextvars to store decimal context.
Make Task._step, Task._wakeup and Future._schedule_callbacks methods
private.
Implement :meth:`asyncio.StreamWriter.wait_closed` and :meth:`asyncio.StreamWriter.is_closing` methods
Implement Server.start_serving(), Server.serve_forever(), and
Server.is_serving() methods. Add 'start_serving' keyword parameter to
loop.create_server() and loop.create_unix_server().
Under Solaris and derivatives, :class:`os.stat_result` provides a st_fstype attribute.
Fix email address header parsing error when the username is an empty quoted string. Patch by Xiang Zhang.
:mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``, ``FIOCLEX``,
``FIOASYNC`` and ``FIONBIO`` also under Solaris/derivatives.
In dataclasses, allow easier overriding of dunder methods without specifying
decorator parameters.
Added support for setting the compression level for zipfile.ZipFile.
contextlib.contextmanager now releases the arguments passed to the
underlying generator as soon as the context manager is entered. Previously
it would keep them alive for as long as the context manager was alive, even
when not being used as a function decorator. Patch by Martin Teichmann.
The default cipher suite selection of the ssl module now uses a blacklist
approach rather than a hard-coded whitelist. Python no longer re-enables
ciphers that have been blocked by OpenSSL security update. Default cipher
suite selection can be configured on compile time.
Deprecate exposing the contents of collections.abc in the regular
collections module.
On Travis CI, Python now Compiles and uses a local copy of OpenSSL 1.1.0g for testing.
Add test certs and test for ECDSA cert and EC/RSA dual mode.
Add a new "_xxsubinterpreters" extension module that exposes the existing
subinterpreter C-API and a new cross-interpreter data sharing mechanism. The
module is primarily intended for more thorough testing of the existing
subinterpreter support.
Add test cases for IDNA 2003 and 2008 host names. IDNA 2003
internationalized host names are working since bpo-31399 has landed. IDNA
2008 are still broken.
Fix test_hashlib to not fail if the _md5 module is not built.
Use app-local UCRT install rather than the proper update for old versions of
Windows.
Ensure separate Modify and Uninstall buttons are displayed.
Create standalone _distutils_findvs module and add missing _queue module to
installer.
No longer add /Library/Python/3.x/site-packages to sys.path for macOS
framework builds to avoid future conflicts.
Provide an additional, more modern macOS installer variant that supports
macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied third-party
libraries to OpenSSL 1.1.0g and to SQLite 3.22.0. The 10.9+ installer now
links with and supplies its own copy of Tcl/Tk 8.6.
This is Python version 3.7.0 alpha 4+ This is Python version 3.7.0 beta 1
===================================== ===================================
.. image:: https://travis-ci.org/python/cpython.svg?branch=master .. image:: https://travis-ci.org/python/cpython.svg?branch=master
:alt: CPython build status on Travis CI :alt: CPython build status on Travis CI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment