Python-checkins
Threads by month
- ----- 2025 -----
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
May 2018
- 4 participants
- 534 discussions

May 31, 2018
https://github.com/python/cpython/commit/0a36ac1a09587735237c5978ebd0463139…
commit: 0a36ac1a09587735237c5978ebd046313922869c
branch: master
author: Serhiy Storchaka <storchaka(a)gmail.com>
committer: GitHub <noreply(a)github.com>
date: 2018-05-31T07:39:00+03:00
summary:
bpo-33641: Convert RFC references into links. (GH-7103)
85% of them are already links.
files:
M Doc/howto/logging-cookbook.rst
M Doc/howto/logging.rst
M Doc/howto/urllib2.rst
M Doc/library/binascii.rst
M Doc/…
[View More]library/codecs.rst
M Doc/library/email.examples.rst
M Doc/library/ftplib.rst
M Doc/library/hashlib.rst
M Doc/library/http.cookiejar.rst
M Doc/library/imaplib.rst
M Doc/library/logging.handlers.rst
M Doc/library/logging.rst
M Doc/library/nntplib.rst
M Doc/library/ssl.rst
M Doc/library/stringprep.rst
M Doc/library/urllib.error.rst
M Doc/library/urllib.parse.rst
M Doc/library/urllib.request.rst
M Doc/library/uuid.rst
M Doc/library/wsgiref.rst
M Doc/library/xmlrpc.client.rst
M Doc/tutorial/stdlib.rst
M Doc/whatsnew/2.4.rst
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index fdf7874883ee..b1930a791fca 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -1652,11 +1652,11 @@ works::
Inserting a BOM into messages sent to a SysLogHandler
-----------------------------------------------------
-`RFC 5424 <https://tools.ietf.org/html/rfc5424>`_ requires that a
+:rfc:`5424` requires that a
Unicode message be sent to a syslog daemon as a set of bytes which have the
following structure: an optional pure-ASCII component, followed by a UTF-8 Byte
-Order Mark (BOM), followed by Unicode encoded using UTF-8. (See the `relevant
-section of the specification <https://tools.ietf.org/html/rfc5424#section-6>`_.)
+Order Mark (BOM), followed by Unicode encoded using UTF-8. (See the
+:rfc:`relevant section of the specification <5424#section-6>`.)
In Python 3.1, code was added to
:class:`~logging.handlers.SysLogHandler` to insert a BOM into the message, but
@@ -1666,7 +1666,7 @@ appear before it.
As this behaviour is broken, the incorrect BOM insertion code is being removed
from Python 3.2.4 and later. However, it is not being replaced, and if you
-want to produce RFC 5424-compliant messages which include a BOM, an optional
+want to produce :rfc:`5424`-compliant messages which include a BOM, an optional
pure-ASCII sequence before it and arbitrary Unicode after it, encoded using
UTF-8, then you need to do the following:
@@ -1689,7 +1689,7 @@ UTF-8, then you need to do the following:
The formatted message *will* be encoded using UTF-8 encoding by
``SysLogHandler``. If you follow the above rules, you should be able to produce
-RFC 5424-compliant messages. If you don't, logging may not complain, but your
+:rfc:`5424`-compliant messages. If you don't, logging may not complain, but your
messages will not be RFC 5424-compliant, and your syslog daemon may complain.
diff --git a/Doc/howto/logging.rst b/Doc/howto/logging.rst
index e9e5580df969..47b5c680c424 100644
--- a/Doc/howto/logging.rst
+++ b/Doc/howto/logging.rst
@@ -297,7 +297,7 @@ which should print something like this:
2010-12-12 11:41:42,612 is when this event was logged.
The default format for date/time display (shown above) is like ISO8601 or
-RFC 3339. If you need more control over the formatting of the date/time, provide
+:rfc:`3339`. If you need more control over the formatting of the date/time, provide
a *datefmt* argument to ``basicConfig``, as in this example::
import logging
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst
index ef1791cebec5..046a88af62f0 100644
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -239,7 +239,7 @@ a different URL, urllib will handle that for you). For those it can't handle,
urlopen will raise an :exc:`HTTPError`. Typical errors include '404' (page not
found), '403' (request forbidden), and '401' (authentication required).
-See section 10 of RFC 2616 for a reference on all the HTTP error codes.
+See section 10 of :rfc:`2616` for a reference on all the HTTP error codes.
The :exc:`HTTPError` instance raised will have an integer 'code' attribute, which
corresponds to the error sent by the server.
@@ -252,7 +252,7 @@ codes in the 100--299 range indicate success, you will usually only see error
codes in the 400--599 range.
:attr:`http.server.BaseHTTPRequestHandler.responses` is a useful dictionary of
-response codes in that shows all the response codes used by RFC 2616. The
+response codes in that shows all the response codes used by :rfc:`2616`. The
dictionary is reproduced here for convenience ::
# Table mapping response codes to messages; entries have the
diff --git a/Doc/library/binascii.rst b/Doc/library/binascii.rst
index 4d3d0e07f186..a4efef846572 100644
--- a/Doc/library/binascii.rst
+++ b/Doc/library/binascii.rst
@@ -80,7 +80,7 @@ The :mod:`binascii` module defines the following functions:
*quotetabs* is present and true, all tabs and spaces will be encoded. If the
optional argument *istext* is present and true, newlines are not encoded but
trailing whitespace will be encoded. If the optional argument *header* is
- present and true, spaces will be encoded as underscores per RFC1522. If the
+ present and true, spaces will be encoded as underscores per :rfc:`1522`. If the
optional argument *header* is present and false, newline characters will be
encoded as well; otherwise linefeed conversion might corrupt the binary data
stream.
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 74b24e10ede6..24008a0b3f00 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1425,7 +1425,7 @@ to the user.
Python supports this conversion in several ways: the ``idna`` codec performs
conversion between Unicode and ACE, separating an input string into labels
-based on the separator characters defined in `section 3.1`_ (1) of :rfc:`3490`
+based on the separator characters defined in :rfc:`section 3.1 of RFC 3490 <3490#section-3.1>`
and converting each label to ACE as required, and conversely separating an input
byte string into labels based on the ``.`` separator and converting any ACE
labels found into unicode. Furthermore, the :mod:`socket` module
@@ -1436,8 +1436,6 @@ parameters, such as :mod:`http.client` and :mod:`ftplib`, accept Unicode host
names (:mod:`http.client` then also transparently sends an IDNA hostname in the
:mailheader:`Host` field if it sends that field at all).
-.. _section 3.1: https://tools.ietf.org/html/rfc3490#section-3.1
-
When receiving host names from the wire (such as in reverse name lookup), no
automatic conversion to Unicode is performed: Applications wishing to present
such host names to the user should decode them to Unicode.
diff --git a/Doc/library/email.examples.rst b/Doc/library/email.examples.rst
index 84e9aee0bc48..fc964622809d 100644
--- a/Doc/library/email.examples.rst
+++ b/Doc/library/email.examples.rst
@@ -12,7 +12,7 @@ text content and the addresses may contain unicode characters):
.. literalinclude:: ../includes/email-simple.py
-Parsing RFC822 headers can easily be done by the using the classes
+Parsing :rfc:`822` headers can easily be done by the using the classes
from the :mod:`~email.parser` module:
.. literalinclude:: ../includes/email-headers.py
diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst
index 7291dfe84811..6c39f9a59fc1 100644
--- a/Doc/library/ftplib.rst
+++ b/Doc/library/ftplib.rst
@@ -295,7 +295,7 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
If optional *rest* is given, a ``REST`` command is sent to the server, passing
*rest* as an argument. *rest* is usually a byte offset into the requested file,
telling the server to restart sending the file's bytes at the requested offset,
- skipping over the initial bytes. Note however that RFC 959 requires only that
+ skipping over the initial bytes. Note however that :rfc:`959` requires only that
*rest* be a string containing characters in the printable range from ASCII code
33 to ASCII code 126. The :meth:`transfercmd` method, therefore, converts
*rest* to a string, but no check is performed on the string's contents. If the
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst
index eda18adc9e5e..0ed0482dc54c 100644
--- a/Doc/library/hashlib.rst
+++ b/Doc/library/hashlib.rst
@@ -283,7 +283,7 @@ BLAKE2
.. index::
single: blake2b, blake2s
-BLAKE2_ is a cryptographic hash function defined in RFC-7693_ that comes in two
+BLAKE2_ is a cryptographic hash function defined in :rfc:`7693` that comes in two
flavors:
* **BLAKE2b**, optimized for 64-bit platforms and produces digests of any size
@@ -707,7 +707,6 @@ Domain Dedication 1.0 Universal:
* *Alexandr Sokolovskiy*
-.. _RFC-7693: https://tools.ietf.org/html/rfc7693
.. _BLAKE2: https://blake2.net
.. _HMAC: https://en.wikipedia.org/wiki/Hash-based_message_authentication_code
.. _BLAKE: https://131002.net/blake/
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst
index 5370601544c7..d8da6683a3a5 100644
--- a/Doc/library/http.cookiejar.rst
+++ b/Doc/library/http.cookiejar.rst
@@ -88,7 +88,7 @@ The following classes are provided:
:class:`DefaultCookiePolicy` objects.
:class:`DefaultCookiePolicy` implements the standard accept / reject rules for
- Netscape and RFC 2965 cookies. By default, RFC 2109 cookies (ie. cookies
+ Netscape and :rfc:`2965` cookies. By default, :rfc:`2109` cookies (ie. cookies
received in a :mailheader:`Set-Cookie` header with a version cookie-attribute of
1) are treated according to the RFC 2965 rules. However, if RFC 2965 handling
is turned off or :attr:`rfc2109_as_netscape` is ``True``, RFC 2109 cookies are
@@ -100,7 +100,7 @@ The following classes are provided:
.. class:: Cookie()
- This class represents Netscape, RFC 2109 and RFC 2965 cookies. It is not
+ This class represents Netscape, :rfc:`2109` and :rfc:`2965` cookies. It is not
expected that users of :mod:`http.cookiejar` construct their own :class:`Cookie`
instances. Instead, if necessary, call :meth:`make_cookies` on a
:class:`CookieJar` instance.
@@ -123,14 +123,14 @@ The following classes are provided:
the one sketched out in ``cookie_spec.html``.
:rfc:`2109` - HTTP State Management Mechanism
- Obsoleted by RFC 2965. Uses :mailheader:`Set-Cookie` with version=1.
+ Obsoleted by :rfc:`2965`. Uses :mailheader:`Set-Cookie` with version=1.
:rfc:`2965` - HTTP State Management Mechanism
The Netscape protocol with the bugs fixed. Uses :mailheader:`Set-Cookie2` in
place of :mailheader:`Set-Cookie`. Not widely used.
http://kristol.org/cookie/errata.html
- Unfinished errata to RFC 2965.
+ Unfinished errata to :rfc:`2965`.
:rfc:`2964` - Use of HTTP State Management
@@ -320,7 +320,7 @@ writing.
.. note::
- This loses information about RFC 2965 cookies, and also about newer or
+ This loses information about :rfc:`2965` cookies, and also about newer or
non-standard cookie-attributes such as ``port``.
.. warning::
@@ -410,13 +410,13 @@ be assigned to.
.. attribute:: CookiePolicy.rfc2965
- Implement RFC 2965 protocol.
+ Implement :rfc:`2965` protocol.
.. attribute:: CookiePolicy.hide_cookie2
Don't add :mailheader:`Cookie2` header to requests (the presence of this header
- indicates to the server that we understand RFC 2965 cookies).
+ indicates to the server that we understand :rfc:`2965` cookies).
The most useful way to define a :class:`CookiePolicy` class is by subclassing
from :class:`DefaultCookiePolicy` and overriding some or all of the methods
@@ -431,7 +431,7 @@ DefaultCookiePolicy Objects
Implements the standard rules for accepting and returning cookies.
-Both RFC 2965 and Netscape cookies are covered. RFC 2965 handling is switched
+Both :rfc:`2965` and Netscape cookies are covered. RFC 2965 handling is switched
off by default.
The easiest way to provide your own policy is to override this class and call
@@ -510,11 +510,11 @@ all be assigned to.
.. attribute:: DefaultCookiePolicy.rfc2109_as_netscape
- If true, request that the :class:`CookieJar` instance downgrade RFC 2109 cookies
+ If true, request that the :class:`CookieJar` instance downgrade :rfc:`2109` cookies
(ie. cookies received in a :mailheader:`Set-Cookie` header with a version
cookie-attribute of 1) to Netscape cookies by setting the version attribute of
the :class:`Cookie` instance to 0. The default value is :const:`None`, in which
- case RFC 2109 cookies are downgraded if and only if RFC 2965 handling is turned
+ case RFC 2109 cookies are downgraded if and only if :rfc:`2965` handling is turned
off. Therefore, RFC 2109 cookies are downgraded by default.
@@ -527,11 +527,11 @@ General strictness switches:
and isn't guaranteed to work!
-RFC 2965 protocol strictness switches:
+:rfc:`2965` protocol strictness switches:
.. attribute:: DefaultCookiePolicy.strict_rfc2965_unverifiable
- Follow RFC 2965 rules on unverifiable transactions (usually, an unverifiable
+ Follow :rfc:`2965` rules on unverifiable transactions (usually, an unverifiable
transaction is one resulting from a redirect or a request for an image hosted on
another site). If this is false, cookies are *never* blocked on the basis of
verifiability
@@ -541,7 +541,7 @@ Netscape protocol strictness switches:
.. attribute:: DefaultCookiePolicy.strict_ns_unverifiable
- Apply RFC 2965 rules on unverifiable transactions even to Netscape cookies.
+ Apply :rfc:`2965` rules on unverifiable transactions even to Netscape cookies.
.. attribute:: DefaultCookiePolicy.strict_ns_domain
@@ -581,7 +581,7 @@ both flags are set).
.. attribute:: DefaultCookiePolicy.DomainRFC2965Match
- When setting cookies, require a full RFC 2965 domain-match.
+ When setting cookies, require a full :rfc:`2965` domain-match.
The following attributes are provided for convenience, and are the most useful
combinations of the above flags:
@@ -605,7 +605,7 @@ Cookie Objects
standard cookie-attributes specified in the various cookie standards. The
correspondence is not one-to-one, because there are complicated rules for
assigning default values, because the ``max-age`` and ``expires``
-cookie-attributes contain equivalent information, and because RFC 2109 cookies
+cookie-attributes contain equivalent information, and because :rfc:`2109` cookies
may be 'downgraded' by :mod:`http.cookiejar` from version 1 to version 0 (Netscape)
cookies.
@@ -616,8 +616,8 @@ internal consistency, so you should know what you're doing if you do that.
.. attribute:: Cookie.version
- Integer or :const:`None`. Netscape cookies have :attr:`version` 0. RFC 2965 and
- RFC 2109 cookies have a ``version`` cookie-attribute of 1. However, note that
+ Integer or :const:`None`. Netscape cookies have :attr:`version` 0. :rfc:`2965` and
+ :rfc:`2109` cookies have a ``version`` cookie-attribute of 1. However, note that
:mod:`http.cookiejar` may 'downgrade' RFC 2109 cookies to Netscape cookies, in which
case :attr:`version` is 0.
@@ -673,7 +673,7 @@ internal consistency, so you should know what you're doing if you do that.
.. attribute:: Cookie.rfc2109
- ``True`` if this cookie was received as an RFC 2109 cookie (ie. the cookie
+ ``True`` if this cookie was received as an :rfc:`2109` cookie (ie. the cookie
arrived in a :mailheader:`Set-Cookie` header, and the value of the Version
cookie-attribute in that header was 1). This attribute is provided because
:mod:`http.cookiejar` may 'downgrade' RFC 2109 cookies to Netscape cookies, in
@@ -745,7 +745,7 @@ cookies (assumes Unix/Netscape convention for location of the cookies file)::
r = opener.open("http://example.com/")
The next example illustrates the use of :class:`DefaultCookiePolicy`. Turn on
-RFC 2965 cookies, be more strict about domains when setting and returning
+:rfc:`2965` cookies, be more strict about domains when setting and returning
Netscape cookies, and block some domains from setting cookies or having them
returned::
diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst
index 1632eb7aed36..2e2c59c9ce00 100644
--- a/Doc/library/imaplib.rst
+++ b/Doc/library/imaplib.rst
@@ -342,7 +342,7 @@ An :class:`IMAP4` instance has the following methods:
.. method:: IMAP4.namespace()
- Returns IMAP namespaces as defined in RFC2342.
+ Returns IMAP namespaces as defined in :rfc:`2342`.
.. method:: IMAP4.noop()
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst
index f7262e60a31b..bdf16a8177e9 100644
--- a/Doc/library/logging.handlers.rst
+++ b/Doc/library/logging.handlers.rst
@@ -596,7 +596,7 @@ supports sending logging messages to a remote or local Unix syslog.
(See: :issue:`12168`.) In earlier versions, the message sent to the
syslog daemons was always terminated with a NUL byte, because early
versions of these daemons expected a NUL terminated message - even
- though it's not in the relevant specification (RFC 5424). More recent
+ though it's not in the relevant specification (:rfc:`5424`). More recent
versions of these daemons don't expect the NUL byte but strip it off
if it's there, and even more recent daemons (which adhere more closely
to RFC 5424) pass the NUL byte on as part of the message.
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 9a54bf9325a0..6b48d6406aa2 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -516,7 +516,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
initialized with a format string for the message as a whole, as well as a
format string for the date/time portion of a message. If no *fmt* is
specified, ``'%(message)s'`` is used. If no *datefmt* is specified, an
- ISO8601-like (or RFC3339-like) date format is used. See the
+ ISO8601-like (or :rfc:`3339`-like) date format is used. See the
:meth:`formatTime` documentation for more details.
The *style* parameter can be one of '%', '{' or '$' and determines how
diff --git a/Doc/library/nntplib.rst b/Doc/library/nntplib.rst
index 2c3cd8dafe6e..d8ef8a692a95 100644
--- a/Doc/library/nntplib.rst
+++ b/Doc/library/nntplib.rst
@@ -542,7 +542,7 @@ them have been superseded by newer commands in :rfc:`3977`.
is supplied, then the returned *list* is an empty list. This is an optional NNTP
extension, and may not be supported by all servers.
- RFC2980 says "It is suggested that this extension be deprecated". Use
+ :rfc:`2980` says "It is suggested that this extension be deprecated". Use
:meth:`descriptions` or :meth:`description` instead.
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst
index 14eac2c58947..7a058245ca82 100644
--- a/Doc/library/ssl.rst
+++ b/Doc/library/ssl.rst
@@ -2638,25 +2638,25 @@ with LibreSSL.
`SSL/TLS Strong Encryption: An Introduction <https://httpd.apache.org/docs/trunk/en/ssl/ssl_intro.html>`_
Intro from the Apache HTTP Server documentation
- `RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: Certificate-Based Key Management <https://www.ietf.org/rfc/rfc1422>`_
+ :rfc:`RFC 1422: Privacy Enhancement for Internet Electronic Mail: Part II: Certificate-Based Key Management <1422>`
Steve Kent
- `RFC 4086: Randomness Requirements for Security <https://datatracker.ietf.org/doc/rfc4086/>`_
+ :rfc:`RFC 4086: Randomness Requirements for Security <4086>`
Donald E., Jeffrey I. Schiller
- `RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <https://datatracker.ietf.org/doc/rfc5280/>`_
+ :rfc:`RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile <5280>`
D. Cooper
- `RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <https://tools.ietf.org/html/rfc5246>`_
+ :rfc:`RFC 5246: The Transport Layer Security (TLS) Protocol Version 1.2 <5246>`
T. Dierks et. al.
- `RFC 6066: Transport Layer Security (TLS) Extensions <https://tools.ietf.org/html/rfc6066>`_
+ :rfc:`RFC 6066: Transport Layer Security (TLS) Extensions <6066>`
D. Eastlake
`IANA TLS: Transport Layer Security (TLS) Parameters <https://www.iana.org/assignments/tls-parameters/tls-parameters.xml>`_
IANA
- `RFC 7525: Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS) <https://tools.ietf.org/html/rfc7525>`_
+ :rfc:`RFC 7525: Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS) <7525>`
IETF
`Mozilla's Server Side TLS recommendations <https://wiki.mozilla.org/Security/Server_Side_TLS>`_
diff --git a/Doc/library/stringprep.rst b/Doc/library/stringprep.rst
index e7fae5631d87..330032ba1c0b 100644
--- a/Doc/library/stringprep.rst
+++ b/Doc/library/stringprep.rst
@@ -26,7 +26,7 @@ define which tables it uses, and what other optional parts of the ``stringprep``
procedure are part of the profile. One example of a ``stringprep`` profile is
``nameprep``, which is used for internationalized domain names.
-The module :mod:`stringprep` only exposes the tables from RFC 3454. As these
+The module :mod:`stringprep` only exposes the tables from :rfc:`3454`. As these
tables would be very large to represent them as dictionaries or lists, the
module uses the Unicode character database internally. The module source code
itself was generated using the ``mkstringprep.py`` utility.
diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst
index 5517b04f5ddf..f7d47ed76aca 100644
--- a/Doc/library/urllib.error.rst
+++ b/Doc/library/urllib.error.rst
@@ -41,8 +41,7 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate:
.. attribute:: code
- An HTTP status code as defined in `RFC 2616
- <http://www.faqs.org/rfcs/rfc2616.html>`_. This numeric value corresponds
+ An HTTP status code as defined in :rfc:`2616`. This numeric value corresponds
to a value found in the dictionary of codes as found in
:attr:`http.server.BaseHTTPRequestHandler.responses`.
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index c0a388c5153e..2d3488bb5eef 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -468,7 +468,7 @@ task isn't already covered by the URL parsing functions above.
*string* may be either a :class:`str` or a :class:`bytes`.
.. versionchanged:: 3.7
- Moved from RFC 2396 to RFC 3986 for quoting URL strings. "~" is now
+ Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now
included in the set of reserved characters.
The optional *encoding* and *errors* parameters specify how to deal with
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 413d8b6ffdfe..b7116fabcd99 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -232,7 +232,7 @@ The following classes are provided:
containing the image.
*unverifiable* should indicate whether the request is unverifiable,
- as defined by RFC 2965. It defaults to ``False``. An unverifiable
+ as defined by :rfc:`2965`. It defaults to ``False``. An unverifiable
request is one whose URL the user did not have the option to
approve. For example, if the request is for an image in an HTML
document, and the user had no option to approve the automatic
@@ -504,7 +504,7 @@ request.
.. attribute:: Request.unverifiable
boolean, indicates whether the request is unverifiable as defined
- by RFC 2965.
+ by :rfc:`2965`.
.. attribute:: Request.method
diff --git a/Doc/library/uuid.rst b/Doc/library/uuid.rst
index 8ec75a79acfa..09c56e537bd8 100644
--- a/Doc/library/uuid.rst
+++ b/Doc/library/uuid.rst
@@ -1,5 +1,5 @@
-:mod:`uuid` --- UUID objects according to RFC 4122
-==================================================
+:mod:`uuid` --- UUID objects according to :rfc:`4122`
+=====================================================
.. module:: uuid
:synopsis: UUID objects (universally unique identifiers) according to RFC 4122
@@ -64,7 +64,7 @@ which relays any information about the UUID's safety, using this enumeration:
Exactly one of *hex*, *bytes*, *bytes_le*, *fields*, or *int* must be given.
The *version* argument is optional; if given, the resulting UUID will have its
- variant and version number set according to RFC 4122, overriding bits in the
+ variant and version number set according to :rfc:`4122`, overriding bits in the
given *hex*, *bytes*, *bytes_le*, *fields*, or *int*.
Comparison of UUID objects are made by way of comparing their
@@ -127,7 +127,7 @@ which relays any information about the UUID's safety, using this enumeration:
.. attribute:: UUID.urn
- The UUID as a URN as specified in RFC 4122.
+ The UUID as a URN as specified in :rfc:`4122`.
.. attribute:: UUID.variant
@@ -158,7 +158,7 @@ The :mod:`uuid` module defines the following functions:
runs, it may launch a separate program, which could be quite slow. If all
attempts to obtain the hardware address fail, we choose a random 48-bit
number with the multicast bit (least significant bit of the first octet)
- set to 1 as recommended in RFC 4122. "Hardware address" means the MAC
+ set to 1 as recommended in :rfc:`4122`. "Hardware address" means the MAC
address of a network interface. On a machine with multiple network
interfaces, universally administered MAC addresses (i.e. where the second
least significant bit of the first octet is *unset*) will be preferred over
diff --git a/Doc/library/wsgiref.rst b/Doc/library/wsgiref.rst
index b0ef3465b04f..2d9b7b359e80 100644
--- a/Doc/library/wsgiref.rst
+++ b/Doc/library/wsgiref.rst
@@ -397,7 +397,7 @@ Paste" library.
Wrap *application* and return a new WSGI application object. The returned
application will forward all requests to the original *application*, and will
check that both the *application* and the server invoking it are conforming to
- the WSGI specification and to RFC 2616.
+ the WSGI specification and to :rfc:`2616`.
Any detected nonconformance results in an :exc:`AssertionError` being raised;
note, however, that how these errors are handled is server-dependent. For
diff --git a/Doc/library/xmlrpc.client.rst b/Doc/library/xmlrpc.client.rst
index 390828ef3d98..ed2ccaeae07a 100644
--- a/Doc/library/xmlrpc.client.rst
+++ b/Doc/library/xmlrpc.client.rst
@@ -328,7 +328,7 @@ Binary Objects
Write the XML-RPC base 64 encoding of this binary item to the *out* stream object.
The encoded data will have newlines every 76 characters as per
- `RFC 2045 section 6.8 <https://tools.ietf.org/html/rfc2045#section-6.8>`_,
+ :rfc:`RFC 2045 section 6.8 <2045#section-6.8>`,
which was the de facto standard base64 specification when the
XML-RPC spec was written.
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst
index 4934d695180e..82261a651348 100644
--- a/Doc/tutorial/stdlib.rst
+++ b/Doc/tutorial/stdlib.rst
@@ -317,7 +317,7 @@ sophisticated and robust capabilities of its larger packages. For example:
names, no direct knowledge or handling of XML is needed.
* The :mod:`email` package is a library for managing email messages, including
- MIME and other RFC 2822-based message documents. Unlike :mod:`smtplib` and
+ MIME and other :rfc:`2822`-based message documents. Unlike :mod:`smtplib` and
:mod:`poplib` which actually send and receive messages, the email package has
a complete toolset for building or decoding complex message structures
(including attachments) and for implementing internet encoding and header
diff --git a/Doc/whatsnew/2.4.rst b/Doc/whatsnew/2.4.rst
index 7c125ffd2ad0..7e11c98399cc 100644
--- a/Doc/whatsnew/2.4.rst
+++ b/Doc/whatsnew/2.4.rst
@@ -998,7 +998,7 @@ complete list of changes, or look through the CVS logs for all the details.
that lets you perform a limited number of passes through the polling loop. The
default is still to loop forever.
-* The :mod:`base64` module now has more complete RFC 3548 support for Base64,
+* The :mod:`base64` module now has more complete :rfc:`3548` support for Base64,
Base32, and Base16 encoding and decoding, including optional case folding and
optional alternative alphabets. (Contributed by Barry Warsaw.)
[View Less]
1
0

May 31, 2018
https://github.com/python/cpython/commit/d5e7556e522f4662ad34b35924b6c76895…
commit: d5e7556e522f4662ad34b35924b6c76895df340e
branch: 2.7
author: Serhiy Storchaka <storchaka(a)gmail.com>
committer: GitHub <noreply(a)github.com>
date: 2018-05-31T07:35:39+03:00
summary:
bpo-33645: Fix an "unknown parsing error" in the parser. (GH-7119)
It is reproduced when parse the "<>" operator and run
Python with both options -3 and -We.
files:
A Misc/NEWS.d/next/Core and Builtins/2018-05-…
[View More]25-18-20-04.bpo-33645.GYGIPH.rst
M Lib/test/test_grammar.py
M Parser/tokenizer.c
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index 23b6ce8d3c5c..228586ece02a 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -5,6 +5,7 @@
check_py3k_warnings
import unittest
import sys
+import warnings
# testing import *
from sys import *
@@ -628,7 +629,6 @@ def check(code, warntext):
with check_py3k_warnings((warntext, DeprecationWarning)):
compile(code, '<test string>', 'exec')
if sys.py3kwarning:
- import warnings
with warnings.catch_warnings():
warnings.filterwarnings('error', category=DeprecationWarning)
with self.assertRaises(SyntaxError) as cm:
@@ -883,6 +883,13 @@ def test_comparison(self):
with check_py3k_warnings(('<> not supported in 3.x; use !=',
DeprecationWarning)):
if eval('1 < 1 > 1 == 1 >= 1 <= 1 <> 1 != 1 in 1 not in 1 is 1 is not 1'): pass
+ if sys.py3kwarning:
+ with warnings.catch_warnings():
+ warnings.filterwarnings('error', category=DeprecationWarning)
+ with self.assertRaises(DeprecationWarning) as cm:
+ compile('1 <> 1', '<test string>', 'eval')
+ self.assertIn('<> not supported in 3.x; use !=',
+ str(cm.exception))
def test_binary_mask_ops(self):
x = 1 & 1
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-25-18-20-04.bpo-33645.GYGIPH.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-25-18-20-04.bpo-33645.GYGIPH.rst
new file mode 100644
index 000000000000..5cc47f1532d3
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-05-25-18-20-04.bpo-33645.GYGIPH.rst
@@ -0,0 +1,2 @@
+Fixed an "unknown parsing error" on parsing the "<>" operator when run
+Python with both options ``-3`` and ``-We``.
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 4fdbad939341..61bfb4e1b7af 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1636,6 +1636,8 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
"<> not supported in 3.x; use !=",
tok->filename, tok->lineno,
NULL, NULL)) {
+ tok->done = E_ERROR;
+ tok->cur = tok->inp;
return ERRORTOKEN;
}
}
[View Less]
1
0

bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
by Serhiy Storchaka May 31, 2018
by Serhiy Storchaka May 31, 2018
May 31, 2018
https://github.com/python/cpython/commit/a5c42284e69fb309bdd17ee8c1c120d1be…
commit: a5c42284e69fb309bdd17ee8c1c120d1be383012
branch: master
author: Serhiy Storchaka <storchaka(a)gmail.com>
committer: GitHub <noreply(a)github.com>
date: 2018-05-31T07:34:34+03:00
summary:
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
files:
M Modules/_collectionsmodule.c
M Parser/asdl_c.py
M Python/Python-ast.c
diff --git a/Modules/_collectionsmodule.c b/Modules/…
[View More]_collectionsmodule.c
index 55132e786d5b..65d556c5a0e5 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -575,7 +575,7 @@ deque_concat(dequeobject *deque, PyObject *other)
return new_deque;
}
-static void
+static int
deque_clear(dequeobject *deque)
{
block *b;
@@ -587,7 +587,7 @@ deque_clear(dequeobject *deque)
PyObject **itemptr, **limit;
if (Py_SIZE(deque) == 0)
- return;
+ return 0;
/* During the process of clearing a deque, decrefs can cause the
deque to mutate. To avoid fatal confusion, we have to make the
@@ -648,7 +648,7 @@ deque_clear(dequeobject *deque)
}
CHECK_END(leftblock->rightlink);
freeblock(leftblock);
- return;
+ return 0;
alternate_method:
while (Py_SIZE(deque)) {
@@ -656,6 +656,7 @@ deque_clear(dequeobject *deque)
assert (item != NULL);
Py_DECREF(item);
}
+ return 0;
}
static PyObject *
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 399e79e0597f..44e3d40c6155 100644
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -647,10 +647,11 @@ def visitModule(self, mod):
return 0;
}
-static void
+static int
ast_clear(AST_object *self)
{
Py_CLEAR(self->dict);
+ return 0;
}
static int
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 38b9292577f2..6a2f28e0e712 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -528,10 +528,11 @@ ast_traverse(AST_object *self, visitproc visit, void *arg)
return 0;
}
-static void
+static int
ast_clear(AST_object *self)
{
Py_CLEAR(self->dict);
+ return 0;
}
static int
[View Less]
1
0

May 31, 2018
https://github.com/python/cpython/commit/9d273344238330d634acb4a7d427a8fb73…
commit: 9d273344238330d634acb4a7d427a8fb732ae62e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington(a)users.noreply.github.com>
committer: GitHub <noreply(a)github.com>
date: 2018-05-30T20:28:04-07:00
summary:
bpo-33532: Fix multiprocessing test_ignore() (GH-7262)
Fix test_ignore() of multiprocessing tests like
test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make
sure that …
[View More]send_bytes() blocks.
(cherry picked from commit 5d6c7ed5e340b2311a15f34e968d4bef09c71922)
Co-authored-by: Victor Stinner <vstinner(a)redhat.com>
files:
M Lib/test/_test_multiprocessing.py
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index aa8eb7564130..f29dda70029b 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -4303,7 +4303,7 @@ def handler(signum, frame):
conn.send('ready')
x = conn.recv()
conn.send(x)
- conn.send_bytes(b'x' * (1024 * 1024)) # sending 1 MiB should block
+ conn.send_bytes(b'x' * support.PIPE_MAX_SIZE)
@unittest.skipUnless(hasattr(signal, 'SIGUSR1'), 'requires SIGUSR1')
def test_ignore(self):
@@ -4322,7 +4322,7 @@ def test_ignore(self):
self.assertEqual(conn.recv(), 1234)
time.sleep(0.1)
os.kill(p.pid, signal.SIGUSR1)
- self.assertEqual(conn.recv_bytes(), b'x'*(1024*1024))
+ self.assertEqual(conn.recv_bytes(), b'x' * support.PIPE_MAX_SIZE)
time.sleep(0.1)
p.join()
finally:
[View Less]
1
0
https://github.com/python/cpython/commit/5d6c7ed5e340b2311a15f34e968d4bef09…
commit: 5d6c7ed5e340b2311a15f34e968d4bef09c71922
branch: master
author: Victor Stinner <vstinner(a)redhat.com>
committer: GitHub <noreply(a)github.com>
date: 2018-05-31T05:08:42+02:00
summary:
bpo-33532: Fix multiprocessing test_ignore() (#7262)
Fix test_ignore() of multiprocessing tests like
test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make
sure that send_bytes() blocks.
files:
M Lib/…
[View More]test/_test_multiprocessing.py
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 8b6bc4b23a02..2e24e9bc1565 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -4338,7 +4338,7 @@ def handler(signum, frame):
conn.send('ready')
x = conn.recv()
conn.send(x)
- conn.send_bytes(b'x' * (1024 * 1024)) # sending 1 MiB should block
+ conn.send_bytes(b'x' * support.PIPE_MAX_SIZE)
@unittest.skipUnless(hasattr(signal, 'SIGUSR1'), 'requires SIGUSR1')
def test_ignore(self):
@@ -4357,7 +4357,7 @@ def test_ignore(self):
self.assertEqual(conn.recv(), 1234)
time.sleep(0.1)
os.kill(p.pid, signal.SIGUSR1)
- self.assertEqual(conn.recv_bytes(), b'x'*(1024*1024))
+ self.assertEqual(conn.recv_bytes(), b'x' * support.PIPE_MAX_SIZE)
time.sleep(0.1)
p.join()
finally:
[View Less]
1
0

[65 flat] Results for Python (master branch) 2018-05-28
by lp_benchmark_robot@intel.com May 31, 2018
by lp_benchmark_robot@intel.com May 31, 2018
May 31, 2018
Results for project python/master, build date: 2018-05-28 03:03:44-07:00.
- commit: c651275
- previous commit: 6e413f4
- revision date: 2018-05-26 13:38:33-07:00
- environment: Broadwell-EP
- cpu: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz 2x22 cores,
stepping 1, LLC 55 MB
- mem: 128 GB
- os: Ubuntu 16.04.2 LTS
- kernel: 4.4.0-62-generic x86_64 GNU/Linux
Baseline results were generated using release v3.6.0, with hash 5c4568a from
2016-12-22 23:38:47+…
[View More]00:00.
+-----+------------------------+--------+------------+------------+------------+
| | |relative|change since|change since|current rev |
| | benchmark|std_dev*| last run | baseline |run with PGO|
+-----+------------------------+--------+------------+------------+------------+
| :-| | 2to3| 0.604% | -0.139% | +8.945% | +6.964% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | call_method| 0.765% | +0.651% | +24.242% | +13.944% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | call_method_slots| 0.733% | +0.694% | +25.961% | +12.263% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | call_method_unknown| 1.242% | -0.144% | +22.245% | +14.424% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | call_simple| 4.096% | -0.823% | +10.456% | +12.871% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | chameleon| 1.448% | +0.497% | +12.627% | +11.354% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | chaos| 0.831% | -0.066% | +8.461% | +10.520% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | crypto_pyaes| 0.525% | -0.051% | -0.511% | +8.045% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | deltablue| 3.764% | -1.008% | +11.391% | +17.084% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | django_template| 3.608% | -2.678% | +20.301% | +13.639% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | dulwich_log| 1.506% | -0.629% | +4.591% | +7.490% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | fannkuch| 0.423% | -0.062% | +6.104% | +6.527% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | float| 1.491% | +0.648% | +2.727% | +8.218% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | genshi_text| 1.140% | -0.253% | +14.171% | +10.308% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | genshi_xml| 1.430% | -0.665% | +11.043% | +9.983% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | go| 5.790% | +0.216% | +5.427% | +10.440% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | hexiom| 0.445% | +0.214% | +12.159% | +11.171% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | html5lib| 4.485% | -2.128% | +9.717% | +10.556% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | json_dumps| 2.136% | -0.053% | +3.573% | +9.583% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | json_loads| 4.848% | +0.552% | -3.626% | +13.601% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | logging_format| 1.775% | -0.892% | +16.477% | +13.100% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | logging_silent| 2.527% | +0.057% | +48.001% | +13.482% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | logging_simple| 1.559% | -0.803% | +11.409% | +13.940% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | mako| 0.760% | -0.216% | +16.476% | +14.242% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | mdp| 5.554% | -0.030% | +1.303% | +16.346% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | meteor_contest| 0.938% | +0.014% | +4.627% | +6.176% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | nbody| 0.679% | +0.543% | +0.033% | +0.650% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | nqueens| 0.529% | -0.060% | +5.313% | +8.069% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | pathlib| 1.572% | -0.946% | +0.112% | +10.730% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | pickle| 4.688% | -0.994% | -1.950% | +24.649% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | pickle_dict| 5.842% | -0.913% | +6.715% | +19.150% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | pickle_list| 2.222% | +0.109% | +6.800% | +17.806% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | pickle_pure_python| 4.798% | -0.713% | +11.233% | +11.059% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | pidigits| 0.066% | +0.049% | +0.221% | +9.848% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | python_startup| 0.127% | -0.204% | +18.870% | +5.079% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | python_startup_no_site| 0.084% | -0.222% | +5.863% | +5.331% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | raytrace| 0.864% | -0.598% | +10.019% | +15.174% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | regex_compile| 5.735% | +0.606% | +4.300% | +10.772% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | regex_dna| 0.499% | -0.168% | -2.236% | +12.652% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | regex_effbot| 3.846% | -1.080% | -8.058% | +9.952% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | regex_v8| 1.595% | -0.487% | +3.567% | +9.321% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | richards| 1.411% | +0.199% | +9.448% | +16.164% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | scimark_fft| 0.516% | -0.043% | -1.661% | +3.515% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | scimark_lu| 3.645% | +0.798% | +23.042% | +12.732% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | scimark_monte_carlo| 2.144% | +0.014% | +5.120% | +5.756% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | scimark_sor| 1.160% | +0.306% | +15.300% | +8.982% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | scimark_sparse_mat_mult| 2.793% | -0.667% | -3.832% | +3.032% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | spectral_norm| 0.556% | -0.166% | +4.514% | +6.817% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sqlalchemy_declarative| 1.396% | -1.131% | +6.481% | +6.701% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sqlalchemy_imperative| 3.609% | +0.115% | +7.596% | +4.962% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sqlite_synth| 3.390% | -0.383% | -0.081% | +10.628% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sympy_expand| 2.852% | +0.225% | +18.044% | +7.085% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sympy_integrate| 1.624% | -0.210% | +18.551% | +6.409% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sympy_str| 4.193% | -0.532% | +19.247% | +7.472% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | sympy_sum| 6.348% | -1.509% | +14.980% | +11.302% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | telco| 3.468% | +0.052% | +20.003% | +9.386% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | tornado_http| 0.993% | -0.235% | +7.466% | +6.322% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | unpack_sequence| 0.960% | +0.299% | +2.715% | -0.621% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | unpickle| 9.000% | -0.139% | +5.976% | +23.435% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | unpickle_list| 1.912% | -0.583% | -3.534% | +15.606% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | unpickle_pure_python| 1.752% | +0.305% | +7.499% | +8.264% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | xml_etree_generate| 1.248% | -0.199% | +2.325% | +12.892% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | xml_etree_iterparse| 1.727% | -0.157% | +4.120% | +9.860% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | xml_etree_parse| 3.083% | -1.695% | -7.095% | +12.286% |
+-----+------------------------+--------+------------+------------+------------+
| :-| | xml_etree_process| 2.164% | -0.477% | +4.263% | +12.258% |
+-----+------------------------+--------+------------+------------+------------+
* Relative Standard Deviation (Standard Deviation/Average)
If this is not displayed properly please visit our results page here:
http://languagesperformance.intel.com/65-flat-results-for-python-master-bra…
Our lab does a nightly source pull and build of the Python project and measures
performance changes against the previous stable version and the previous nightly
measurement. This is provided as a service to the community so that quality
issues with current hardware can be identified quickly.
Intel technologies' features and benefits depend on system configuration and may
require enabled hardware, software or service activation. Performance varies
depending on system configuration.
[View Less]
1
0
https://github.com/python/cpython/commit/abb88023896f545b18d20c7d0d5934b112…
commit: abb88023896f545b18d20c7d0d5934b11230a12f
branch: 3.7
author: Ned Deily <nad(a)python.org>
committer: Ned Deily <nad(a)python.org>
date: 2018-05-30T19:50:49-04:00
summary:
3.7.0b5
files:
A Misc/NEWS.d/3.7.0b5.rst
D Misc/NEWS.d/next/Build/2018-05-10-21-10-01.bpo-33012.5Zfjac.rst
D Misc/NEWS.d/next/Build/2018-05-15-12-44-50.bpo-33522.mJoNcA.rst
D Misc/NEWS.d/next/Build/2018-05-28-11-40-22.bpo-33614.…
[View More]28e0sE.rst
D Misc/NEWS.d/next/Core and Builtins/2017-10-02-21-02-14.bpo-21983.UoC319.rst
D Misc/NEWS.d/next/Core and Builtins/2018-02-27-20-57-00.bpo-32911.cmKfco.rst
D Misc/NEWS.d/next/Core and Builtins/2018-04-25-20-44-42.bpo-28055.f49kfC.rst
D Misc/NEWS.d/next/Core and Builtins/2018-05-02-08-36-03.bpo-33391.z4a7rb.rst
D Misc/NEWS.d/next/Core and Builtins/2018-05-13-01-26-18.bpo-33475.rI0y1U.rst
D Misc/NEWS.d/next/Core and Builtins/2018-05-14-11-34-55.bpo-20104.kqBNzv.rst
D Misc/NEWS.d/next/Core and Builtins/2018-05-14-17-31-02.bpo-33509.pIUfTd.rst
D Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst
D Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst
D Misc/NEWS.d/next/Documentation/2018-05-14-20-08-58.bpo-33503.Wvt0qg.rst
D Misc/NEWS.d/next/Documentation/2018-05-22-11-47-14.bpo-33604.5YHTpz.rst
D Misc/NEWS.d/next/Documentation/2018-05-23-11-59-51.bpo-32436.S1LGPa.rst
D Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst
D Misc/NEWS.d/next/IDLE/2018-02-12-08-08-45.bpo-32831.srDRvU.rst
D Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst
D Misc/NEWS.d/next/IDLE/2018-05-23-19-51-07.bpo-33628.sLlFLO.rst
D Misc/NEWS.d/next/Library/2017-09-29-16-40-38.bpo-16865.l-f6I_.rst
D Misc/NEWS.d/next/Library/2018-02-26-09-08-07.bpo-32257.6ElnUt.rst
D Misc/NEWS.d/next/Library/2018-04-02-20-44-54.bpo-32861.HeBjzN.rst
D Misc/NEWS.d/next/Library/2018-04-11-20-29-19.bpo-33263.B56Hc1.rst
D Misc/NEWS.d/next/Library/2018-04-29-23-56-20.bpo-33197.dgRLqr.rst
D Misc/NEWS.d/next/Library/2018-05-02-07-26-29.bpo-28167.7FwDfN.rst
D Misc/NEWS.d/next/Library/2018-05-05-09-53-05.bpo-33422.4FtQ0q.rst
D Misc/NEWS.d/next/Library/2018-05-05-18-02-24.bpo-20087.lJrvXL.rst
D Misc/NEWS.d/next/Library/2018-05-08-16-43-42.bpo-28556._xr5mp.rst
D Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst
D Misc/NEWS.d/next/Library/2018-05-14-10-29-03.bpo-33495.TeGTQJ.rst
D Misc/NEWS.d/next/Library/2018-05-14-17-49-34.bpo-33497.wWT6XM.rst
D Misc/NEWS.d/next/Library/2018-05-14-18-05-35.bpo-33505.L8pAyt.rst
D Misc/NEWS.d/next/Library/2018-05-15-18-02-03.bpo-0.pj2Mbb.rst
D Misc/NEWS.d/next/Library/2018-05-16-05-24-43.bpo-26819.taxbVT.rst
D Misc/NEWS.d/next/Library/2018-05-16-09-30-27.bpo-33542.idNAcs.rst
D Misc/NEWS.d/next/Library/2018-05-16-10-07-40.bpo-33536._s0TE8.rst
D Misc/NEWS.d/next/Library/2018-05-16-14-57-58.bpo-33109.nPLL_S.rst
D Misc/NEWS.d/next/Library/2018-05-16-17-05-48.bpo-33548.xWslmx.rst
D Misc/NEWS.d/next/Library/2018-05-16-18-10-38.bpo-33540.wy9LRV.rst
D Misc/NEWS.d/next/Library/2018-05-17-22-53-08.bpo-28556.C6Hnd1.rst
D Misc/NEWS.d/next/Library/2018-05-18-21-50-47.bpo-33570.7CZy4t.rst
D Misc/NEWS.d/next/Library/2018-05-22-13-05-12.bpo-30877.JZEGjI.rst
D Misc/NEWS.d/next/Library/2018-05-23-14-58-05.bpo-33623.wAw1cF.rst
D Misc/NEWS.d/next/Library/2018-05-23-20-14-34.bpo-33618.xU39lr.rst
D Misc/NEWS.d/next/Library/2018-05-24-17-41-36.bpo-32493.5tAoAu.rst
D Misc/NEWS.d/next/Library/2018-05-26-10-13-59.bpo-33652.humFJ1.rst
D Misc/NEWS.d/next/Library/2018-05-26-13-09-34.bpo-33654.IbYWxA.rst
D Misc/NEWS.d/next/Library/2018-05-28-12-29-54.bpo-33672.GM_Xm_.rst
D Misc/NEWS.d/next/Library/2018-05-28-15-55-12.bpo-33469.hmXBpY.rst
D Misc/NEWS.d/next/Library/2018-05-28-16-19-35.bpo-32410.Z1DZaF.rst
D Misc/NEWS.d/next/Library/2018-05-28-16-40-32.bpo-32610.KvUAsL.rst
D Misc/NEWS.d/next/Library/2018-05-28-18-40-26.bpo-31467.s4Fad3.rst
D Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst
D Misc/NEWS.d/next/Library/2018-05-29-00-37-56.bpo-33674.2IkGhL.rst
D Misc/NEWS.d/next/Library/2018-05-29-01-13-39.bpo-33654.sa81Si.rst
D Misc/NEWS.d/next/Library/2018-05-29-12-51-18.bpo-32684.ZEIism.rst
D Misc/NEWS.d/next/Library/2018-05-29-15-32-18.bpo-32751.oBTqr7.rst
D Misc/NEWS.d/next/Tests/2018-05-14-13-32-46.bpo-32604.a_z6D_.rst
D Misc/NEWS.d/next/Tests/2018-05-26-16-01-40.bpo-33655.Frb4LA.rst
D Misc/NEWS.d/next/macOS/2018-05-16-13-25-58.bpo-13631.UIjDyY.rst
M Include/patchlevel.h
M Lib/pydoc_data/topics.py
M README.rst
diff --git a/Include/patchlevel.h b/Include/patchlevel.h
index d7bd1d394454..bcba96770fc1 100644
--- a/Include/patchlevel.h
+++ b/Include/patchlevel.h
@@ -20,10 +20,10 @@
#define PY_MINOR_VERSION 7
#define PY_MICRO_VERSION 0
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_BETA
-#define PY_RELEASE_SERIAL 4
+#define PY_RELEASE_SERIAL 5
/* Version as a string */
-#define PY_VERSION "3.7.0b4+"
+#define PY_VERSION "3.7.0b5"
/*--end constants--*/
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py
index e138d49821aa..09016ac99068 100644
--- a/Lib/pydoc_data/topics.py
+++ b/Lib/pydoc_data/topics.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Autogenerated by Sphinx on Wed May 2 03:29:32 2018
+# Autogenerated by Sphinx on Wed May 30 19:43:20 2018
topics = {'assert': 'The "assert" statement\n'
'**********************\n'
'\n'
@@ -403,6 +403,134 @@
'See also: **PEP 526** - Variable and attribute annotation '
'syntax\n'
' **PEP 484** - Type hints\n',
+ 'async': 'Coroutines\n'
+ '**********\n'
+ '\n'
+ 'New in version 3.5.\n'
+ '\n'
+ '\n'
+ 'Coroutine function definition\n'
+ '=============================\n'
+ '\n'
+ ' async_funcdef ::= [decorators] "async" "def" funcname "(" '
+ '[parameter_list] ")" ["->" expression] ":" suite\n'
+ '\n'
+ 'Execution of Python coroutines can be suspended and resumed at '
+ 'many\n'
+ 'points (see *coroutine*). In the body of a coroutine, any "await" '
+ 'and\n'
+ '"async" identifiers become reserved keywords; "await" expressions,\n'
+ '"async for" and "async with" can only be used in coroutine bodies.\n'
+ '\n'
+ 'Functions defined with "async def" syntax are always coroutine\n'
+ 'functions, even if they do not contain "await" or "async" '
+ 'keywords.\n'
+ '\n'
+ 'It is a "SyntaxError" to use "yield from" expressions in "async '
+ 'def"\n'
+ 'coroutines.\n'
+ '\n'
+ 'An example of a coroutine function:\n'
+ '\n'
+ ' async def func(param1, param2):\n'
+ ' do_stuff()\n'
+ ' await some_coroutine()\n'
+ '\n'
+ '\n'
+ 'The "async for" statement\n'
+ '=========================\n'
+ '\n'
+ ' async_for_stmt ::= "async" for_stmt\n'
+ '\n'
+ 'An *asynchronous iterable* is able to call asynchronous code in '
+ 'its\n'
+ '*iter* implementation, and *asynchronous iterator* can call\n'
+ 'asynchronous code in its *next* method.\n'
+ '\n'
+ 'The "async for" statement allows convenient iteration over\n'
+ 'asynchronous iterators.\n'
+ '\n'
+ 'The following code:\n'
+ '\n'
+ ' async for TARGET in ITER:\n'
+ ' BLOCK\n'
+ ' else:\n'
+ ' BLOCK2\n'
+ '\n'
+ 'Is semantically equivalent to:\n'
+ '\n'
+ ' iter = (ITER)\n'
+ ' iter = type(iter).__aiter__(iter)\n'
+ ' running = True\n'
+ ' while running:\n'
+ ' try:\n'
+ ' TARGET = await type(iter).__anext__(iter)\n'
+ ' except StopAsyncIteration:\n'
+ ' running = False\n'
+ ' else:\n'
+ ' BLOCK\n'
+ ' else:\n'
+ ' BLOCK2\n'
+ '\n'
+ 'See also "__aiter__()" and "__anext__()" for details.\n'
+ '\n'
+ 'It is a "SyntaxError" to use "async for" statement outside of an\n'
+ '"async def" function.\n'
+ '\n'
+ '\n'
+ 'The "async with" statement\n'
+ '==========================\n'
+ '\n'
+ ' async_with_stmt ::= "async" with_stmt\n'
+ '\n'
+ 'An *asynchronous context manager* is a *context manager* that is '
+ 'able\n'
+ 'to suspend execution in its *enter* and *exit* methods.\n'
+ '\n'
+ 'The following code:\n'
+ '\n'
+ ' async with EXPR as VAR:\n'
+ ' BLOCK\n'
+ '\n'
+ 'Is semantically equivalent to:\n'
+ '\n'
+ ' mgr = (EXPR)\n'
+ ' aexit = type(mgr).__aexit__\n'
+ ' aenter = type(mgr).__aenter__(mgr)\n'
+ '\n'
+ ' VAR = await aenter\n'
+ ' try:\n'
+ ' BLOCK\n'
+ ' except:\n'
+ ' if not await aexit(mgr, *sys.exc_info()):\n'
+ ' raise\n'
+ ' else:\n'
+ ' await aexit(mgr, None, None, None)\n'
+ '\n'
+ 'See also "__aenter__()" and "__aexit__()" for details.\n'
+ '\n'
+ 'It is a "SyntaxError" to use "async with" statement outside of an\n'
+ '"async def" function.\n'
+ '\n'
+ 'See also: **PEP 492** - Coroutines with async and await syntax\n'
+ '\n'
+ '-[ Footnotes ]-\n'
+ '\n'
+ '[1] The exception is propagated to the invocation stack unless\n'
+ ' there is a "finally" clause which happens to raise another\n'
+ ' exception. That new exception causes the old one to be lost.\n'
+ '\n'
+ '[2] Currently, control “flows off the end” except in the case of\n'
+ ' an exception or the execution of a "return", "continue", or\n'
+ ' "break" statement.\n'
+ '\n'
+ '[3] A string literal appearing as the first statement in the\n'
+ ' function body is transformed into the function’s "__doc__"\n'
+ ' attribute and therefore the function’s *docstring*.\n'
+ '\n'
+ '[4] A string literal appearing as the first statement in the class\n'
+ ' body is transformed into the namespace’s "__doc__" item and\n'
+ ' therefore the class’s *docstring*.\n',
'atom-identifiers': 'Identifiers (Names)\n'
'*******************\n'
'\n'
@@ -6222,13 +6350,13 @@
'\n'
'Lambda expressions (sometimes called lambda forms) are used to '
'create\n'
- 'anonymous functions. The expression "lambda arguments: '
+ 'anonymous functions. The expression "lambda parameters: '
'expression"\n'
'yields a function object. The unnamed object behaves like a '
'function\n'
'object defined with:\n'
'\n'
- ' def <lambda>(arguments):\n'
+ ' def <lambda>(parameters):\n'
' return expression\n'
'\n'
'See section Function definitions for the syntax of parameter '
@@ -8593,6 +8721,8 @@
'When a class definition is executed, the following steps '
'occur:\n'
'\n'
+ '* MRO entries are resolved\n'
+ '\n'
'* the appropriate metaclass is determined\n'
'\n'
'* the class namespace is prepared\n'
@@ -8602,6 +8732,24 @@
'* the class object is created\n'
'\n'
'\n'
+ 'Resolving MRO entries\n'
+ '---------------------\n'
+ '\n'
+ 'If a base that appears in class definition is not an '
+ 'instance of\n'
+ '"type", then an "__mro_entries__" method is searched on it. '
+ 'If found,\n'
+ 'it is called with the original bases tuple. This method must '
+ 'return a\n'
+ 'tuple of classes that will be used instead of this base. The '
+ 'tuple may\n'
+ 'be empty, in such case the original base is ignored.\n'
+ '\n'
+ 'See also: **PEP 560** - Core support for typing module and '
+ 'generic\n'
+ ' types\n'
+ '\n'
+ '\n'
'Determining the appropriate metaclass\n'
'-------------------------------------\n'
'\n'
@@ -8720,7 +8868,7 @@
'initialised\n'
'correctly. Failing to do so will result in a '
'"DeprecationWarning" in\n'
- 'Python 3.6, and a "RuntimeWarning" in the future.\n'
+ 'Python 3.6, and a "RuntimeError" in Python 3.8.\n'
'\n'
'When using the default metaclass "type", or any metaclass '
'that\n'
@@ -8872,6 +9020,32 @@
' module) to the language.\n'
'\n'
'\n'
+ 'Emulating generic types\n'
+ '=======================\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'
+ '\n'
+ 'classmethod object.__class_getitem__(cls, key)\n'
+ '\n'
+ ' Return an object representing the specialization of a '
+ 'generic class\n'
+ ' by type arguments found in *key*.\n'
+ '\n'
+ 'This method is looked up on the class object itself, and '
+ 'when defined\n'
+ 'in the class body, this method is implicitly a class '
+ 'method. Note,\n'
+ 'this mechanism is primarily reserved for use with static '
+ 'type hints,\n'
+ 'other usage is discouraged.\n'
+ '\n'
+ 'See also: **PEP 560** - Core support for typing module and '
+ 'generic\n'
+ ' types\n'
+ '\n'
+ '\n'
'Emulating callable objects\n'
'==========================\n'
'\n'
diff --git a/Misc/NEWS.d/3.7.0b5.rst b/Misc/NEWS.d/3.7.0b5.rst
new file mode 100644
index 000000000000..2e2fb9ee0469
--- /dev/null
+++ b/Misc/NEWS.d/3.7.0b5.rst
@@ -0,0 +1,592 @@
+.. bpo: 33622
+.. date: 2018-05-23-20-46-14
+.. nonce: xPucO9
+.. release date: 2018-05-30
+.. section: Core and Builtins
+
+Fixed a leak when the garbage collector fails to add an object with the
+``__del__`` method or referenced by it into the :data:`gc.garbage` list.
+:c:func:`PyGC_Collect` can now be called when an exception is set and
+preserves it.
+
+..
+
+.. bpo: 33509
+.. date: 2018-05-14-17-31-02
+.. nonce: pIUfTd
+.. section: Core and Builtins
+
+Fix module_globals parameter of warnings.warn_explicit(): don't crash if
+module_globals is not a dict.
+
+..
+
+.. bpo: 20104
+.. date: 2018-05-14-11-34-55
+.. nonce: kqBNzv
+.. section: Core and Builtins
+
+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
+.. date: 2018-05-13-01-26-18
+.. nonce: rI0y1U
+.. section: Core and Builtins
+
+Fixed miscellaneous bugs in converting annotations to strings and optimized
+parentheses in the string representation.
+
+..
+
+.. bpo: 33391
+.. date: 2018-05-02-08-36-03
+.. nonce: z4a7rb
+.. section: Core and Builtins
+
+Fix a leak in set_symmetric_difference().
+
+..
+
+.. bpo: 28055
+.. date: 2018-04-25-20-44-42
+.. nonce: f49kfC
+.. section: Core and Builtins
+
+Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
+
+..
+
+.. bpo: 32911
+.. date: 2018-02-27-20-57-00
+.. nonce: cmKfco
+.. section: Core and Builtins
+
+Due to unexpected compatibility issues discovered during downstream beta
+testing, reverted :issue:`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
+.. date: 2017-10-02-21-02-14
+.. nonce: UoC319
+.. section: Core and Builtins
+
+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
+.. date: 2018-05-29-15-32-18
+.. nonce: oBTqr7
+.. section: Library
+
+When cancelling the task due to a timeout, :meth:`asyncio.wait_for` will now
+wait until the cancellation is complete.
+
+..
+
+.. bpo: 32684
+.. date: 2018-05-29-12-51-18
+.. nonce: ZEIism
+.. section: Library
+
+Fix gather to propagate cancellation of itself even with return_exceptions.
+
+..
+
+.. bpo: 33654
+.. date: 2018-05-29-01-13-39
+.. nonce: sa81Si
+.. section: Library
+
+Support protocol type switching in SSLTransport.set_protocol().
+
+..
+
+.. bpo: 33674
+.. date: 2018-05-29-00-37-56
+.. nonce: 2IkGhL
+.. section: Library
+
+Pause the transport as early as possible to further reduce the risk of
+data_received() being called before connection_made().
+
+..
+
+.. bpo: 33674
+.. date: 2018-05-28-22-49-59
+.. nonce: 6LFFj7
+.. section: Library
+
+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: 31467
+.. date: 2018-05-28-18-40-26
+.. nonce: s4Fad3
+.. section: Library
+
+Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's
+already closed raises AttributeError.
+
+..
+
+.. bpo: 32610
+.. date: 2018-05-28-16-40-32
+.. nonce: KvUAsL
+.. section: Library
+
+Make asyncio.all_tasks() return only pending tasks.
+
+..
+
+.. bpo: 32410
+.. date: 2018-05-28-16-19-35
+.. nonce: Z1DZaF
+.. section: Library
+
+Avoid blocking on file IO in sendfile fallback code
+
+..
+
+.. bpo: 33469
+.. date: 2018-05-28-15-55-12
+.. nonce: hmXBpY
+.. section: Library
+
+Fix RuntimeError after closing loop that used run_in_executor
+
+..
+
+.. bpo: 33672
+.. date: 2018-05-28-12-29-54
+.. nonce: GM_Xm_
+.. section: Library
+
+Fix Task.__repr__ crash with Cython's bogus coroutines
+
+..
+
+.. bpo: 33654
+.. date: 2018-05-26-13-09-34
+.. nonce: IbYWxA
+.. section: Library
+
+Fix transport.set_protocol() to support switching between asyncio.Protocol
+and asyncio.BufferedProtocol. Fix loop.start_tls() to work with
+asyncio.BufferedProtocols.
+
+..
+
+.. bpo: 33652
+.. date: 2018-05-26-10-13-59
+.. nonce: humFJ1
+.. section: Library
+
+Pickles of type variables and subscripted generics are now future-proof and
+compatible with older Python versions.
+
+..
+
+.. bpo: 32493
+.. date: 2018-05-24-17-41-36
+.. nonce: 5tAoAu
+.. section: Library
+
+Fixed :func:`uuid.uuid1` on FreeBSD.
+
+..
+
+.. bpo: 33618
+.. date: 2018-05-23-20-14-34
+.. nonce: xU39lr
+.. section: Library
+
+Finalize and document preliminary and experimental TLS 1.3 support with
+OpenSSL 1.1.1
+
+..
+
+.. bpo: 33623
+.. date: 2018-05-23-14-58-05
+.. nonce: wAw1cF
+.. section: Library
+
+Fix possible SIGSGV when asyncio.Future is created in __del__
+
+..
+
+.. bpo: 30877
+.. date: 2018-05-22-13-05-12
+.. nonce: JZEGjI
+.. section: Library
+
+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
+.. date: 2018-05-18-21-50-47
+.. nonce: 7CZy4t
+.. section: Library
+
+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 cipers enabled by
+default.
+
+..
+
+.. bpo: 28556
+.. date: 2018-05-17-22-53-08
+.. nonce: C6Hnd1
+.. section: Library
+
+Do not simplify arguments to `typing.Union`. Now `Union[Manager, Employee]`
+is not simplified to `Employee` at runtime. Such simplification previously
+caused several bugs and limited possibilities for introspection.
+
+..
+
+.. bpo: 33540
+.. date: 2018-05-16-18-10-38
+.. nonce: wy9LRV
+.. section: Library
+
+Add a new ``block_on_close`` class attribute to ``ForkingMixIn`` and
+``ThreadingMixIn`` classes of :mod:`socketserver`.
+
+..
+
+.. bpo: 33548
+.. date: 2018-05-16-17-05-48
+.. nonce: xWslmx
+.. section: Library
+
+tempfile._candidate_tempdir_list should consider common TEMP locations
+
+..
+
+.. bpo: 33109
+.. date: 2018-05-16-14-57-58
+.. nonce: nPLL_S
+.. section: Library
+
+argparse subparsers are once again not required by default, reverting the
+change in behavior introduced by bpo-26510 in 3.7.0a2.
+
+..
+
+.. bpo: 33536
+.. date: 2018-05-16-10-07-40
+.. nonce: _s0TE8
+.. section: Library
+
+dataclasses.make_dataclass now checks for invalid field names and duplicate
+fields. Also, added a check for invalid field specifications.
+
+..
+
+.. bpo: 33542
+.. date: 2018-05-16-09-30-27
+.. nonce: idNAcs
+.. section: Library
+
+Prevent ``uuid.get_node`` from using a DUID instead of a MAC on Windows.
+Patch by Zvi Effron
+
+..
+
+.. bpo: 26819
+.. date: 2018-05-16-05-24-43
+.. nonce: taxbVT
+.. section: Library
+
+Fix race condition with `ReadTransport.resume_reading` in Windows proactor
+event loop.
+
+..
+
+.. bpo: 0
+.. date: 2018-05-15-18-02-03
+.. nonce: pj2Mbb
+.. section: Library
+
+Fix failure in `typing.get_type_hints()` when ClassVar was provided as a
+string forward reference.
+
+..
+
+.. bpo: 33505
+.. date: 2018-05-14-18-05-35
+.. nonce: L8pAyt
+.. section: Library
+
+Optimize asyncio.ensure_future() by reordering if checks: 1.17x faster.
+
+..
+
+.. bpo: 33497
+.. date: 2018-05-14-17-49-34
+.. nonce: wWT6XM
+.. section: Library
+
+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
+.. date: 2018-05-14-10-29-03
+.. nonce: TeGTQJ
+.. section: Library
+
+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
+.. date: 2018-05-12-06-01-02
+.. nonce: Fj-jMD
+.. section: Library
+
+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
+.. date: 2018-05-08-16-43-42
+.. nonce: _xr5mp
+.. section: Library
+
+Minor fixes in typing module: add annotations to ``NamedTuple.__new__``,
+pass ``*args`` and ``**kwds`` in ``Generic.__new__``. Original PRs by
+Paulius Šarka and Chad Dombrova.
+
+..
+
+.. bpo: 20087
+.. date: 2018-05-05-18-02-24
+.. nonce: lJrvXL
+.. section: Library
+
+Updated alias mapping with glibc 2.27 supported locales.
+
+..
+
+.. bpo: 33422
+.. date: 2018-05-05-09-53-05
+.. nonce: 4FtQ0q
+.. section: Library
+
+Fix trailing quotation marks getting deleted when looking up byte/string
+literals on pydoc. Patch by Andrés Delfino.
+
+..
+
+.. bpo: 28167
+.. date: 2018-05-02-07-26-29
+.. nonce: 7FwDfN
+.. section: Library
+
+The function ``platform.linux_ditribution`` and ``platform.dist`` now
+trigger a ``DeprecationWarning`` and have been marked for removal in Python
+3.8
+
+..
+
+.. bpo: 33197
+.. date: 2018-04-29-23-56-20
+.. nonce: dgRLqr
+.. section: Library
+
+Update error message when constructing invalid inspect.Parameters Patch by
+Dong-hee Na.
+
+..
+
+.. bpo: 33263
+.. date: 2018-04-11-20-29-19
+.. nonce: B56Hc1
+.. section: Library
+
+Fix FD leak in `_SelectorSocketTransport` Patch by Vlad Starostin.
+
+..
+
+.. bpo: 32861
+.. date: 2018-04-02-20-44-54
+.. nonce: HeBjzN
+.. section: Library
+
+The urllib.robotparser's ``__str__`` representation now includes wildcard
+entries and the "Crawl-delay" and "Request-rate" fields. Patch by Michael
+Lazar.
+
+..
+
+.. bpo: 32257
+.. date: 2018-02-26-09-08-07
+.. nonce: 6ElnUt
+.. section: Library
+
+The ssl module now contains OP_NO_RENEGOTIATION constant, available with
+OpenSSL 1.1.0h or 1.1.1.
+
+..
+
+.. bpo: 16865
+.. date: 2017-09-29-16-40-38
+.. nonce: l-f6I_
+.. section: Library
+
+Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
+
+..
+
+.. bpo: 23859
+.. date: 2018-05-29-16-02-31
+.. nonce: E5gba1
+.. section: Documentation
+
+Document that `asyncio.wait()` does not cancel its futures on timeout.
+
+..
+
+.. bpo: 32436
+.. date: 2018-05-23-11-59-51
+.. nonce: S1LGPa
+.. section: Documentation
+
+Document PEP 567 changes to asyncio.
+
+..
+
+.. bpo: 33604
+.. date: 2018-05-22-11-47-14
+.. nonce: 5YHTpz
+.. section: Documentation
+
+Update HMAC md5 default to a DeprecationWarning, bump removal to 3.8.
+
+..
+
+.. bpo: 33503
+.. date: 2018-05-14-20-08-58
+.. nonce: Wvt0qg
+.. section: Documentation
+
+Fix broken pypi link
+
+..
+
+.. bpo: 33421
+.. date: 2018-05-14-15-15-41
+.. nonce: 3GU_QO
+.. section: Documentation
+
+Add missing documentation for ``typing.AsyncContextManager``.
+
+..
+
+.. bpo: 33655
+.. date: 2018-05-26-16-01-40
+.. nonce: Frb4LA
+.. section: Tests
+
+Ignore test_posix_fallocate failures on BSD platforms that might be due to
+running on ZFS.
+
+..
+
+.. bpo: 32604
+.. date: 2018-05-14-13-32-46
+.. nonce: a_z6D_
+.. section: Tests
+
+Remove the _xxsubinterpreters module (meant for testing) and associated
+helpers. This module was originally added recently in 3.7b1.
+
+..
+
+.. bpo: 33614
+.. date: 2018-05-28-11-40-22
+.. nonce: 28e0sE
+.. section: Build
+
+Ensures module definition files for the stable ABI on Windows are correctly
+regenerated.
+
+..
+
+.. bpo: 33522
+.. date: 2018-05-15-12-44-50
+.. nonce: mJoNcA
+.. section: Build
+
+Enable CI builds on Visual Studio Team Services at
+https://python.visualstudio.com/cpython
+
+..
+
+.. bpo: 33012
+.. date: 2018-05-10-21-10-01
+.. nonce: 5Zfjac
+.. section: Build
+
+Add ``-Wno-cast-function-type`` for gcc 8 for silencing warnings about
+function casts like casting to PyCFunction in method definition lists.
+
+..
+
+.. bpo: 13631
+.. date: 2018-05-16-13-25-58
+.. nonce: UIjDyY
+.. section: macOS
+
+The .editrc file in user's home directory is now processed correctly during
+the readline initialization through editline emulation on macOS.
+
+..
+
+.. bpo: 33628
+.. date: 2018-05-23-19-51-07
+.. nonce: sLlFLO
+.. section: IDLE
+
+IDLE: Cleanup codecontext.py and its test.
+
+..
+
+.. bpo: 33564
+.. date: 2018-05-17-19-41-12
+.. nonce: XzHZJe
+.. section: IDLE
+
+IDLE's code context now recognizes async as a block opener.
+
+..
+
+.. bpo: 32831
+.. date: 2018-02-12-08-08-45
+.. nonce: srDRvU
+.. section: IDLE
+
+Add docstrings and tests for codecontext.
diff --git a/Misc/NEWS.d/next/Build/2018-05-10-21-10-01.bpo-33012.5Zfjac.rst b/Misc/NEWS.d/next/Build/2018-05-10-21-10-01.bpo-33012.5Zfjac.rst
deleted file mode 100644
index ecaa5c6117a0..000000000000
--- a/Misc/NEWS.d/next/Build/2018-05-10-21-10-01.bpo-33012.5Zfjac.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Add ``-Wno-cast-function-type`` for gcc 8 for silencing warnings about
-function casts like casting to PyCFunction in method definition lists.
diff --git a/Misc/NEWS.d/next/Build/2018-05-15-12-44-50.bpo-33522.mJoNcA.rst b/Misc/NEWS.d/next/Build/2018-05-15-12-44-50.bpo-33522.mJoNcA.rst
deleted file mode 100644
index f44862f0c454..000000000000
--- a/Misc/NEWS.d/next/Build/2018-05-15-12-44-50.bpo-33522.mJoNcA.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Enable CI builds on Visual Studio Team Services at
-https://python.visualstudio.com/cpython
diff --git a/Misc/NEWS.d/next/Build/2018-05-28-11-40-22.bpo-33614.28e0sE.rst b/Misc/NEWS.d/next/Build/2018-05-28-11-40-22.bpo-33614.28e0sE.rst
deleted file mode 100644
index 9091c282ad0a..000000000000
--- a/Misc/NEWS.d/next/Build/2018-05-28-11-40-22.bpo-33614.28e0sE.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Ensures module definition files for the stable ABI on Windows are correctly
-regenerated.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-10-02-21-02-14.bpo-21983.UoC319.rst b/Misc/NEWS.d/next/Core and Builtins/2017-10-02-21-02-14.bpo-21983.UoC319.rst
deleted file mode 100644
index 88a03685073c..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2017-10-02-21-02-14.bpo-21983.UoC319.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fix a crash in `ctypes.cast()` in case the type argument is a ctypes
-structured data type. Patch by Eryk Sun and Oren Milman.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-02-27-20-57-00.bpo-32911.cmKfco.rst b/Misc/NEWS.d/next/Core and Builtins/2018-02-27-20-57-00.bpo-32911.cmKfco.rst
deleted file mode 100644
index 0c2ae756b65c..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-02-27-20-57-00.bpo-32911.cmKfco.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-Due to unexpected compatibility issues discovered during downstream beta
-testing, reverted :issue:`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.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-04-25-20-44-42.bpo-28055.f49kfC.rst b/Misc/NEWS.d/next/Core and Builtins/2018-04-25-20-44-42.bpo-28055.f49kfC.rst
deleted file mode 100644
index c7d849906fc9..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-04-25-20-44-42.bpo-28055.f49kfC.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-02-08-36-03.bpo-33391.z4a7rb.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-02-08-36-03.bpo-33391.z4a7rb.rst
deleted file mode 100644
index ab17aa408c06..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-05-02-08-36-03.bpo-33391.z4a7rb.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix a leak in set_symmetric_difference().
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-13-01-26-18.bpo-33475.rI0y1U.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-13-01-26-18.bpo-33475.rI0y1U.rst
deleted file mode 100644
index cd714b9d1e89..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-05-13-01-26-18.bpo-33475.rI0y1U.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fixed miscellaneous bugs in converting annotations to strings and optimized
-parentheses in the string representation.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-14-11-34-55.bpo-20104.kqBNzv.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-14-11-34-55.bpo-20104.kqBNzv.rst
deleted file mode 100644
index 28c5b3302b4a..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-05-14-11-34-55.bpo-20104.kqBNzv.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-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.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-14-17-31-02.bpo-33509.pIUfTd.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-14-17-31-02.bpo-33509.pIUfTd.rst
deleted file mode 100644
index 3d80a8c7f3eb..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-05-14-17-31-02.bpo-33509.pIUfTd.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fix module_globals parameter of warnings.warn_explicit(): don't crash if
-module_globals is not a dict.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst
deleted file mode 100644
index e589b4503229..000000000000
--- a/Misc/NEWS.d/next/Core and Builtins/2018-05-23-20-46-14.bpo-33622.xPucO9.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-Fixed a leak when the garbage collector fails to add an object with the
-``__del__`` method or referenced by it into the :data:`gc.garbage` list.
-:c:func:`PyGC_Collect` can now be called when an exception is set and
-preserves it.
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst b/Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst
deleted file mode 100644
index 75694b7be1e7..000000000000
--- a/Misc/NEWS.d/next/Documentation/2018-05-14-15-15-41.bpo-33421.3GU_QO.rst
+++ /dev/null
@@ -1 +0,0 @@
-Add missing documentation for ``typing.AsyncContextManager``.
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-14-20-08-58.bpo-33503.Wvt0qg.rst b/Misc/NEWS.d/next/Documentation/2018-05-14-20-08-58.bpo-33503.Wvt0qg.rst
deleted file mode 100644
index 27025c31a036..000000000000
--- a/Misc/NEWS.d/next/Documentation/2018-05-14-20-08-58.bpo-33503.Wvt0qg.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix broken pypi link
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-22-11-47-14.bpo-33604.5YHTpz.rst b/Misc/NEWS.d/next/Documentation/2018-05-22-11-47-14.bpo-33604.5YHTpz.rst
deleted file mode 100644
index 3c2f2d0b8230..000000000000
--- a/Misc/NEWS.d/next/Documentation/2018-05-22-11-47-14.bpo-33604.5YHTpz.rst
+++ /dev/null
@@ -1 +0,0 @@
-Update HMAC md5 default to a DeprecationWarning, bump removal to 3.8.
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-23-11-59-51.bpo-32436.S1LGPa.rst b/Misc/NEWS.d/next/Documentation/2018-05-23-11-59-51.bpo-32436.S1LGPa.rst
deleted file mode 100644
index 8eeb561921a8..000000000000
--- a/Misc/NEWS.d/next/Documentation/2018-05-23-11-59-51.bpo-32436.S1LGPa.rst
+++ /dev/null
@@ -1 +0,0 @@
-Document PEP 567 changes to asyncio.
diff --git a/Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst b/Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst
deleted file mode 100644
index b372faa5eb97..000000000000
--- a/Misc/NEWS.d/next/Documentation/2018-05-29-16-02-31.bpo-23859.E5gba1.rst
+++ /dev/null
@@ -1 +0,0 @@
-Document that `asyncio.wait()` does not cancel its futures on timeout.
diff --git a/Misc/NEWS.d/next/IDLE/2018-02-12-08-08-45.bpo-32831.srDRvU.rst b/Misc/NEWS.d/next/IDLE/2018-02-12-08-08-45.bpo-32831.srDRvU.rst
deleted file mode 100644
index 583e341f94f0..000000000000
--- a/Misc/NEWS.d/next/IDLE/2018-02-12-08-08-45.bpo-32831.srDRvU.rst
+++ /dev/null
@@ -1 +0,0 @@
-Add docstrings and tests for codecontext.
diff --git a/Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst b/Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst
deleted file mode 100644
index df828485f69e..000000000000
--- a/Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst
+++ /dev/null
@@ -1 +0,0 @@
-IDLE's code context now recognizes async as a block opener.
diff --git a/Misc/NEWS.d/next/IDLE/2018-05-23-19-51-07.bpo-33628.sLlFLO.rst b/Misc/NEWS.d/next/IDLE/2018-05-23-19-51-07.bpo-33628.sLlFLO.rst
deleted file mode 100644
index f0b13a21c346..000000000000
--- a/Misc/NEWS.d/next/IDLE/2018-05-23-19-51-07.bpo-33628.sLlFLO.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-IDLE: Cleanup codecontext.py and its test.
-
diff --git a/Misc/NEWS.d/next/Library/2017-09-29-16-40-38.bpo-16865.l-f6I_.rst b/Misc/NEWS.d/next/Library/2017-09-29-16-40-38.bpo-16865.l-f6I_.rst
deleted file mode 100644
index afaff736bf1c..000000000000
--- a/Misc/NEWS.d/next/Library/2017-09-29-16-40-38.bpo-16865.l-f6I_.rst
+++ /dev/null
@@ -1 +0,0 @@
-Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
diff --git a/Misc/NEWS.d/next/Library/2018-02-26-09-08-07.bpo-32257.6ElnUt.rst b/Misc/NEWS.d/next/Library/2018-02-26-09-08-07.bpo-32257.6ElnUt.rst
deleted file mode 100644
index e74c39b68100..000000000000
--- a/Misc/NEWS.d/next/Library/2018-02-26-09-08-07.bpo-32257.6ElnUt.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-The ssl module now contains OP_NO_RENEGOTIATION constant, available with
-OpenSSL 1.1.0h or 1.1.1.
diff --git a/Misc/NEWS.d/next/Library/2018-04-02-20-44-54.bpo-32861.HeBjzN.rst b/Misc/NEWS.d/next/Library/2018-04-02-20-44-54.bpo-32861.HeBjzN.rst
deleted file mode 100644
index 13defbb03cff..000000000000
--- a/Misc/NEWS.d/next/Library/2018-04-02-20-44-54.bpo-32861.HeBjzN.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-The urllib.robotparser's ``__str__`` representation now includes wildcard
-entries and the "Crawl-delay" and "Request-rate" fields. Patch by
-Michael Lazar.
diff --git a/Misc/NEWS.d/next/Library/2018-04-11-20-29-19.bpo-33263.B56Hc1.rst b/Misc/NEWS.d/next/Library/2018-04-11-20-29-19.bpo-33263.B56Hc1.rst
deleted file mode 100644
index 77994f6a5986..000000000000
--- a/Misc/NEWS.d/next/Library/2018-04-11-20-29-19.bpo-33263.B56Hc1.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix FD leak in `_SelectorSocketTransport` Patch by Vlad Starostin.
diff --git a/Misc/NEWS.d/next/Library/2018-04-29-23-56-20.bpo-33197.dgRLqr.rst b/Misc/NEWS.d/next/Library/2018-04-29-23-56-20.bpo-33197.dgRLqr.rst
deleted file mode 100644
index 1bbb44b2fc39..000000000000
--- a/Misc/NEWS.d/next/Library/2018-04-29-23-56-20.bpo-33197.dgRLqr.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Update error message when constructing invalid inspect.Parameters
-Patch by Dong-hee Na.
diff --git a/Misc/NEWS.d/next/Library/2018-05-02-07-26-29.bpo-28167.7FwDfN.rst b/Misc/NEWS.d/next/Library/2018-05-02-07-26-29.bpo-28167.7FwDfN.rst
deleted file mode 100644
index a4971e5b77ba..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-02-07-26-29.bpo-28167.7FwDfN.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-The function ``platform.linux_ditribution`` and ``platform.dist`` now
-trigger a ``DeprecationWarning`` and have been marked for removal in Python
-3.8
diff --git a/Misc/NEWS.d/next/Library/2018-05-05-09-53-05.bpo-33422.4FtQ0q.rst b/Misc/NEWS.d/next/Library/2018-05-05-09-53-05.bpo-33422.4FtQ0q.rst
deleted file mode 100644
index 0d284d508f10..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-05-09-53-05.bpo-33422.4FtQ0q.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fix trailing quotation marks getting deleted when looking up byte/string
-literals on pydoc. Patch by Andrés Delfino.
diff --git a/Misc/NEWS.d/next/Library/2018-05-05-18-02-24.bpo-20087.lJrvXL.rst b/Misc/NEWS.d/next/Library/2018-05-05-18-02-24.bpo-20087.lJrvXL.rst
deleted file mode 100644
index 2342cb781926..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-05-18-02-24.bpo-20087.lJrvXL.rst
+++ /dev/null
@@ -1 +0,0 @@
-Updated alias mapping with glibc 2.27 supported locales.
diff --git a/Misc/NEWS.d/next/Library/2018-05-08-16-43-42.bpo-28556._xr5mp.rst b/Misc/NEWS.d/next/Library/2018-05-08-16-43-42.bpo-28556._xr5mp.rst
deleted file mode 100644
index 8ed4658211fb..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-08-16-43-42.bpo-28556._xr5mp.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-Minor fixes in typing module: add annotations to ``NamedTuple.__new__``,
-pass ``*args`` and ``**kwds`` in ``Generic.__new__``. Original PRs by
-Paulius Šarka and Chad Dombrova.
diff --git a/Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst b/Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst
deleted file mode 100644
index 6595b1265a4e..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-12-06-01-02.bpo-33453.Fj-jMD.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-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").
diff --git a/Misc/NEWS.d/next/Library/2018-05-14-10-29-03.bpo-33495.TeGTQJ.rst b/Misc/NEWS.d/next/Library/2018-05-14-10-29-03.bpo-33495.TeGTQJ.rst
deleted file mode 100644
index 22cf04cd2e43..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-14-10-29-03.bpo-33495.TeGTQJ.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-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.
diff --git a/Misc/NEWS.d/next/Library/2018-05-14-17-49-34.bpo-33497.wWT6XM.rst b/Misc/NEWS.d/next/Library/2018-05-14-17-49-34.bpo-33497.wWT6XM.rst
deleted file mode 100644
index d919dfdca75e..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-14-17-49-34.bpo-33497.wWT6XM.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Add errors param to cgi.parse_multipart and make an encoding in FieldStorage
-use the given errors (needed for Twisted). Patch by Amber Brown.
diff --git a/Misc/NEWS.d/next/Library/2018-05-14-18-05-35.bpo-33505.L8pAyt.rst b/Misc/NEWS.d/next/Library/2018-05-14-18-05-35.bpo-33505.L8pAyt.rst
deleted file mode 100644
index 201b02781c18..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-14-18-05-35.bpo-33505.L8pAyt.rst
+++ /dev/null
@@ -1 +0,0 @@
-Optimize asyncio.ensure_future() by reordering if checks: 1.17x faster.
diff --git a/Misc/NEWS.d/next/Library/2018-05-15-18-02-03.bpo-0.pj2Mbb.rst b/Misc/NEWS.d/next/Library/2018-05-15-18-02-03.bpo-0.pj2Mbb.rst
deleted file mode 100644
index ba8514cdd895..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-15-18-02-03.bpo-0.pj2Mbb.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix failure in `typing.get_type_hints()` when ClassVar was provided as a string forward reference.
diff --git a/Misc/NEWS.d/next/Library/2018-05-16-05-24-43.bpo-26819.taxbVT.rst b/Misc/NEWS.d/next/Library/2018-05-16-05-24-43.bpo-26819.taxbVT.rst
deleted file mode 100644
index d407a5800318..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-16-05-24-43.bpo-26819.taxbVT.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fix race condition with `ReadTransport.resume_reading` in Windows proactor
-event loop.
diff --git a/Misc/NEWS.d/next/Library/2018-05-16-09-30-27.bpo-33542.idNAcs.rst b/Misc/NEWS.d/next/Library/2018-05-16-09-30-27.bpo-33542.idNAcs.rst
deleted file mode 100644
index 16ba799131f4..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-16-09-30-27.bpo-33542.idNAcs.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Prevent ``uuid.get_node`` from using a DUID instead of a MAC on Windows.
-Patch by Zvi Effron
diff --git a/Misc/NEWS.d/next/Library/2018-05-16-10-07-40.bpo-33536._s0TE8.rst b/Misc/NEWS.d/next/Library/2018-05-16-10-07-40.bpo-33536._s0TE8.rst
deleted file mode 100644
index 2c1024180d34..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-16-10-07-40.bpo-33536._s0TE8.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-dataclasses.make_dataclass now checks for invalid field names and duplicate
-fields. Also, added a check for invalid field specifications.
diff --git a/Misc/NEWS.d/next/Library/2018-05-16-14-57-58.bpo-33109.nPLL_S.rst b/Misc/NEWS.d/next/Library/2018-05-16-14-57-58.bpo-33109.nPLL_S.rst
deleted file mode 100644
index be731f99f7f0..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-16-14-57-58.bpo-33109.nPLL_S.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-argparse subparsers are once again not required by default, reverting the
-change in behavior introduced by bpo-26510 in 3.7.0a2.
diff --git a/Misc/NEWS.d/next/Library/2018-05-16-17-05-48.bpo-33548.xWslmx.rst b/Misc/NEWS.d/next/Library/2018-05-16-17-05-48.bpo-33548.xWslmx.rst
deleted file mode 100644
index 65585c152987..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-16-17-05-48.bpo-33548.xWslmx.rst
+++ /dev/null
@@ -1 +0,0 @@
-tempfile._candidate_tempdir_list should consider common TEMP locations
diff --git a/Misc/NEWS.d/next/Library/2018-05-16-18-10-38.bpo-33540.wy9LRV.rst b/Misc/NEWS.d/next/Library/2018-05-16-18-10-38.bpo-33540.wy9LRV.rst
deleted file mode 100644
index 9019cc14f515..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-16-18-10-38.bpo-33540.wy9LRV.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Add a new ``block_on_close`` class attribute to ``ForkingMixIn`` and
-``ThreadingMixIn`` classes of :mod:`socketserver`.
diff --git a/Misc/NEWS.d/next/Library/2018-05-17-22-53-08.bpo-28556.C6Hnd1.rst b/Misc/NEWS.d/next/Library/2018-05-17-22-53-08.bpo-28556.C6Hnd1.rst
deleted file mode 100644
index 35e13bde1897..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-17-22-53-08.bpo-28556.C6Hnd1.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-Do not simplify arguments to `typing.Union`. Now `Union[Manager, Employee]`
-is not simplified to `Employee` at runtime. Such simplification previously
-caused several bugs and limited possibilities for introspection.
diff --git a/Misc/NEWS.d/next/Library/2018-05-18-21-50-47.bpo-33570.7CZy4t.rst b/Misc/NEWS.d/next/Library/2018-05-18-21-50-47.bpo-33570.7CZy4t.rst
deleted file mode 100644
index bd719a47e8f8..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-18-21-50-47.bpo-33570.7CZy4t.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-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 cipers enabled by
-default.
diff --git a/Misc/NEWS.d/next/Library/2018-05-22-13-05-12.bpo-30877.JZEGjI.rst b/Misc/NEWS.d/next/Library/2018-05-22-13-05-12.bpo-30877.JZEGjI.rst
deleted file mode 100644
index 4be0fae4ecb6..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-22-13-05-12.bpo-30877.JZEGjI.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-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.
diff --git a/Misc/NEWS.d/next/Library/2018-05-23-14-58-05.bpo-33623.wAw1cF.rst b/Misc/NEWS.d/next/Library/2018-05-23-14-58-05.bpo-33623.wAw1cF.rst
deleted file mode 100644
index 641874c3ca39..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-23-14-58-05.bpo-33623.wAw1cF.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix possible SIGSGV when asyncio.Future is created in __del__
diff --git a/Misc/NEWS.d/next/Library/2018-05-23-20-14-34.bpo-33618.xU39lr.rst b/Misc/NEWS.d/next/Library/2018-05-23-20-14-34.bpo-33618.xU39lr.rst
deleted file mode 100644
index 6cc2452b145c..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-23-20-14-34.bpo-33618.xU39lr.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Finalize and document preliminary and experimental TLS 1.3 support with
-OpenSSL 1.1.1
diff --git a/Misc/NEWS.d/next/Library/2018-05-24-17-41-36.bpo-32493.5tAoAu.rst b/Misc/NEWS.d/next/Library/2018-05-24-17-41-36.bpo-32493.5tAoAu.rst
deleted file mode 100644
index 32f88dd0388d..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-24-17-41-36.bpo-32493.5tAoAu.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fixed :func:`uuid.uuid1` on FreeBSD.
diff --git a/Misc/NEWS.d/next/Library/2018-05-26-10-13-59.bpo-33652.humFJ1.rst b/Misc/NEWS.d/next/Library/2018-05-26-10-13-59.bpo-33652.humFJ1.rst
deleted file mode 100644
index f5499f1b53ce..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-26-10-13-59.bpo-33652.humFJ1.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Pickles of type variables and subscripted generics are now future-proof and
-compatible with older Python versions.
diff --git a/Misc/NEWS.d/next/Library/2018-05-26-13-09-34.bpo-33654.IbYWxA.rst b/Misc/NEWS.d/next/Library/2018-05-26-13-09-34.bpo-33654.IbYWxA.rst
deleted file mode 100644
index 3ae506ddc55f..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-26-13-09-34.bpo-33654.IbYWxA.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-Fix transport.set_protocol() to support switching between asyncio.Protocol
-and asyncio.BufferedProtocol. Fix loop.start_tls() to work with
-asyncio.BufferedProtocols.
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-12-29-54.bpo-33672.GM_Xm_.rst b/Misc/NEWS.d/next/Library/2018-05-28-12-29-54.bpo-33672.GM_Xm_.rst
deleted file mode 100644
index 36373c028639..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-28-12-29-54.bpo-33672.GM_Xm_.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix Task.__repr__ crash with Cython's bogus coroutines
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-15-55-12.bpo-33469.hmXBpY.rst b/Misc/NEWS.d/next/Library/2018-05-28-15-55-12.bpo-33469.hmXBpY.rst
deleted file mode 100644
index cc1b2e436f2a..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-28-15-55-12.bpo-33469.hmXBpY.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix RuntimeError after closing loop that used run_in_executor
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-16-19-35.bpo-32410.Z1DZaF.rst b/Misc/NEWS.d/next/Library/2018-05-28-16-19-35.bpo-32410.Z1DZaF.rst
deleted file mode 100644
index 2d7bb2032ac5..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-28-16-19-35.bpo-32410.Z1DZaF.rst
+++ /dev/null
@@ -1 +0,0 @@
-Avoid blocking on file IO in sendfile fallback code
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-16-40-32.bpo-32610.KvUAsL.rst b/Misc/NEWS.d/next/Library/2018-05-28-16-40-32.bpo-32610.KvUAsL.rst
deleted file mode 100644
index 372908063247..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-28-16-40-32.bpo-32610.KvUAsL.rst
+++ /dev/null
@@ -1 +0,0 @@
-Make asyncio.all_tasks() return only pending tasks.
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-18-40-26.bpo-31467.s4Fad3.rst b/Misc/NEWS.d/next/Library/2018-05-28-18-40-26.bpo-31467.s4Fad3.rst
deleted file mode 100644
index 61cc8baa1cd5..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-28-18-40-26.bpo-31467.s4Fad3.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's
-already closed raises AttributeError.
diff --git a/Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst b/Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst
deleted file mode 100644
index 1e9868073f78..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-28-22-49-59.bpo-33674.6LFFj7.rst
+++ /dev/null
@@ -1,4 +0,0 @@
-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.
diff --git a/Misc/NEWS.d/next/Library/2018-05-29-00-37-56.bpo-33674.2IkGhL.rst b/Misc/NEWS.d/next/Library/2018-05-29-00-37-56.bpo-33674.2IkGhL.rst
deleted file mode 100644
index 66baca16d69f..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-29-00-37-56.bpo-33674.2IkGhL.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Pause the transport as early as possible to further reduce the risk of
-data_received() being called before connection_made().
diff --git a/Misc/NEWS.d/next/Library/2018-05-29-01-13-39.bpo-33654.sa81Si.rst b/Misc/NEWS.d/next/Library/2018-05-29-01-13-39.bpo-33654.sa81Si.rst
deleted file mode 100644
index 39e8e615d8c4..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-29-01-13-39.bpo-33654.sa81Si.rst
+++ /dev/null
@@ -1 +0,0 @@
-Support protocol type switching in SSLTransport.set_protocol().
diff --git a/Misc/NEWS.d/next/Library/2018-05-29-12-51-18.bpo-32684.ZEIism.rst b/Misc/NEWS.d/next/Library/2018-05-29-12-51-18.bpo-32684.ZEIism.rst
deleted file mode 100644
index b360bbcf7998..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-29-12-51-18.bpo-32684.ZEIism.rst
+++ /dev/null
@@ -1 +0,0 @@
-Fix gather to propagate cancellation of itself even with return_exceptions.
diff --git a/Misc/NEWS.d/next/Library/2018-05-29-15-32-18.bpo-32751.oBTqr7.rst b/Misc/NEWS.d/next/Library/2018-05-29-15-32-18.bpo-32751.oBTqr7.rst
deleted file mode 100644
index 3e27cd461ca8..000000000000
--- a/Misc/NEWS.d/next/Library/2018-05-29-15-32-18.bpo-32751.oBTqr7.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-When cancelling the task due to a timeout, :meth:`asyncio.wait_for` will now
-wait until the cancellation is complete.
diff --git a/Misc/NEWS.d/next/Tests/2018-05-14-13-32-46.bpo-32604.a_z6D_.rst b/Misc/NEWS.d/next/Tests/2018-05-14-13-32-46.bpo-32604.a_z6D_.rst
deleted file mode 100644
index f854dd95412a..000000000000
--- a/Misc/NEWS.d/next/Tests/2018-05-14-13-32-46.bpo-32604.a_z6D_.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Remove the _xxsubinterpreters module (meant for testing) and associated
-helpers. This module was originally added recently in 3.7b1.
diff --git a/Misc/NEWS.d/next/Tests/2018-05-26-16-01-40.bpo-33655.Frb4LA.rst b/Misc/NEWS.d/next/Tests/2018-05-26-16-01-40.bpo-33655.Frb4LA.rst
deleted file mode 100644
index 7ed2ea232371..000000000000
--- a/Misc/NEWS.d/next/Tests/2018-05-26-16-01-40.bpo-33655.Frb4LA.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Ignore test_posix_fallocate failures on BSD platforms that might be due to
-running on ZFS.
diff --git a/Misc/NEWS.d/next/macOS/2018-05-16-13-25-58.bpo-13631.UIjDyY.rst b/Misc/NEWS.d/next/macOS/2018-05-16-13-25-58.bpo-13631.UIjDyY.rst
deleted file mode 100644
index d9d505e937a8..000000000000
--- a/Misc/NEWS.d/next/macOS/2018-05-16-13-25-58.bpo-13631.UIjDyY.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-The .editrc file in user's home directory is now processed correctly during
-the readline initialization through editline emulation on macOS.
diff --git a/README.rst b/README.rst
index 2341b53c7102..411a38fb09d7 100644
--- a/README.rst
+++ b/README.rst
@@ -1,5 +1,5 @@
-This is Python version 3.7.0 beta 4+
-====================================
+This is Python version 3.7.0 beta 5
+===================================
.. image:: https://travis-ci.org/python/cpython.svg?branch=master
:alt: CPython build status on Travis CI
[View Less]
1
0

May 30, 2018
https://github.com/python/cpython/commit/7da7a01f9949f625f29960883b001af44d…
commit: 7da7a01f9949f625f29960883b001af44d54402a
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington(a)users.noreply.github.com>
committer: Yury Selivanov <yury(a)magic.io>
date: 2018-05-30T19:35:15-04:00
summary:
3.6 what's new: fix a reference to PEP 528 (GH-7113) (#7257)
(cherry picked from commit 495e567a2b3bbe3b99f0c253edf12997a9ff4ee1)
Co-authored-by: Dmitry Shachnev <mitya57(a)…
[View More]users.noreply.github.com>
files:
M Doc/whatsnew/3.6.rst
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index c5ccd85603c0..19ab734f92f7 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -147,7 +147,7 @@ Security improvements:
Windows improvements:
-* :ref:`PEP 528 <whatsnew36-pep529>` and :ref:`PEP 529 <whatsnew36-pep529>`,
+* :ref:`PEP 528 <whatsnew36-pep528>` and :ref:`PEP 529 <whatsnew36-pep529>`,
Windows filesystem and console encoding changed to UTF-8.
* The ``py.exe`` launcher, when used interactively, no longer prefers
[View Less]
1
0

May 30, 2018
https://github.com/python/cpython/commit/0e823c6efa4729f3cd19f96af82c673b10…
commit: 0e823c6efa4729f3cd19f96af82c673b10cd3ee2
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington(a)users.noreply.github.com>
committer: GitHub <noreply(a)github.com>
date: 2018-05-30T16:22:13-07:00
summary:
bpo-31368: Enhance os.preadv() documentation (GH-7254)
(cherry picked from commit 02e2a085dc1740b1cbf4ba2ed77335c84ce8a367)
Co-authored-by: Pablo Galindo <Pablogsal(a)gmail.com…
[View More]>
files:
M Doc/library/os.rst
M Doc/whatsnew/3.7.rst
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 60ab94f4769e..d937451be51e 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1082,20 +1082,81 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
.. versionadded:: 3.3
-.. function:: pread(fd, buffersize, offset)
+.. function:: pread(fd, n, offset)
- Read from a file descriptor, *fd*, at a position of *offset*. It will read up
- to *buffersize* number of bytes. The file offset remains unchanged.
+ Read at most *n* bytes from file descriptor *fd* at a position of *offset*,
+ leaving the file offset unchanged.
+
+ Return a bytestring containing the bytes read. If the end of the file
+ referred to by *fd* has been reached, an empty bytes object is returned.
Availability: Unix.
.. versionadded:: 3.3
+.. function:: preadv(fd, buffers, offset, flags=0)
+
+ Read from a file descriptor *fd* at a position of *offset* into mutable
+ :term:`bytes-like objects <bytes-like object>` *buffers*, leaving the file
+ offset unchanged. Transfer data into each buffer until it is full and then
+ move on to the next buffer in the sequence to hold the rest of the data.
+
+ The flags argument contains a bitwise OR of zero or more of the following
+ flags:
+
+ - :data:`RWF_HIPRI`
+ - :data:`RWF_NOWAIT`
+
+ Return the total number of bytes actually read which can be less than the
+ total capacity of all the objects.
+
+ The operating system may set a limit (:func:`sysconf` value
+ ``'SC_IOV_MAX'``) on the number of buffers that can be used.
+
+ Combine the functionality of :func:`os.readv` and :func:`os.pread`.
+
+ Availability: Linux 2.6.30 and newer, FreeBSD 6.0 and newer,
+ OpenBSD 2.7 and newer. Using flags requires Linux 4.6 or newer.
+
+ .. versionadded:: 3.7
+
+
+.. data:: RWF_NOWAIT
+
+ Do not wait for data which is not immediately available. If this flag is
+ specified, the system call will return instantly if it would have to read
+ data from the backing storage or wait for a lock.
+
+ If some data was successfully read, it will return the number of bytes read.
+ If no bytes were read, it will return ``-1`` and set errno to
+ :data:`errno.EAGAIN`.
+
+ Availability: Linux 4.14 and newer.
+
+ .. versionadded:: 3.7
+
+
+.. data:: RWF_HIPRI
+
+ High priority read/write. Allows block-based filesystems to use polling
+ of the device, which provides lower latency, but may use additional
+ resources.
+
+ Currently, on Linux, this feature is usable only on a file descriptor opened
+ using the :data:`O_DIRECT` flag.
+
+ Availability: Linux 4.6 and newer.
+
+ .. versionadded:: 3.7
+
+
.. function:: pwrite(fd, str, offset)
- Write *bytestring* to a file descriptor, *fd*, from *offset*,
- leaving the file offset unchanged.
+ Write the bytestring in *str* to file descriptor *fd* at position of
+ *offset*, leaving the file offset unchanged.
+
+ Return the number of bytes actually written.
Availability: Unix.
@@ -1104,54 +1165,57 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
.. function:: pwritev(fd, buffers, offset, flags=0)
- Combines the functionality of :func:`os.writev` and :func:`os.pwrite`. It
- writes the contents of *buffers* to file descriptor *fd* at offset *offset*.
- *buffers* must be a sequence of :term:`bytes-like objects <bytes-like object>`.
- Buffers are processed in array order. Entire contents of first buffer is written
- before proceeding to second, and so on. The operating system may set a limit
- (sysconf() value SC_IOV_MAX) on the number of buffers that can be used.
- :func:`~os.pwritev` writes the contents of each object to the file descriptor
- and returns the total number of bytes written.
+ Write the *buffers* contents to file descriptor *fd* at a offset *offset*,
+ leaving the file offset unchanged. *buffers* must be a sequence of
+ :term:`bytes-like objects <bytes-like object>`. Buffers are processed in
+ array order. Entire contents of the first buffer is written before
+ proceeding to the second, and so on.
- The *flags* argument contains a bitwise OR of zero or more of the following
+ The flags argument contains a bitwise OR of zero or more of the following
flags:
- - RWF_DSYNC
- - RWF_SYNC
+ - :data:`RWF_DSYNC`
+ - :data:`RWF_SYNC`
- Using non-zero flags requires Linux 4.7 or newer.
+ Return the total number of bytes actually written.
- Availability: Linux (version 2.6.30), FreeBSD 6.0 and newer,
- OpenBSD (version 2.7 and newer).
+ The operating system may set a limit (:func:`sysconf` value
+ ``'SC_IOV_MAX'``) on the number of buffers that can be used.
+
+ Combine the functionality of :func:`os.writev` and :func:`os.pwrite`.
+
+ Availability: Linux 2.6.30 and newer, FreeBSD 6.0 and newer,
+ OpenBSD 2.7 and newer. Using flags requires Linux 4.7 or newer.
.. versionadded:: 3.7
+
.. data:: RWF_DSYNC
- Provide a per-write equivalent of the O_DSYNC open(2) flag. This flag
- is meaningful only for pwritev2(), and its effect applies only to the
- data range written by the system call.
+ Provide a per-write equivalent of the :data:`O_DSYNC` ``open(2)`` flag. This
+ flag effect applies only to the data range written by the system call.
- Availability: Linux (version 4.7).
+ Availability: Linux 4.7 and newer.
.. versionadded:: 3.7
+
.. data:: RWF_SYNC
- Provide a per-write equivalent of the O_SYNC open(2) flag. This flag is
- meaningful only for pwritev2(), and its effect applies only to the data
- range written by the system call.
+ Provide a per-write equivalent of the :data:`O_SYNC` ``open(2)`` flag. This
+ flag effect applies only to the data range written by the system call.
- Availability: Linux (version 4.7).
+ Availability: Linux 4.7 and newer.
.. versionadded:: 3.7
.. function:: read(fd, n)
- Read at most *n* bytes from file descriptor *fd*. Return a bytestring containing the
- bytes read. If the end of the file referred to by *fd* has been reached, an
- empty bytes object is returned.
+ Read at most *n* bytes from file descriptor *fd*.
+
+ Return a bytestring containing the bytes read. If the end of the file
+ referred to by *fd* has been reached, an empty bytes object is returned.
.. note::
@@ -1230,66 +1294,19 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
.. function:: readv(fd, buffers)
Read from a file descriptor *fd* into a number of mutable :term:`bytes-like
- objects <bytes-like object>` *buffers*. :func:`~os.readv` will transfer data
- into each buffer until it is full and then move on to the next buffer in the
- sequence to hold the rest of the data. :func:`~os.readv` returns the total
- number of bytes read (which may be less than the total capacity of all the
- objects).
+ objects <bytes-like object>` *buffers*. Transfer data into each buffer until
+ it is full and then move on to the next buffer in the sequence to hold the
+ rest of the data.
- Availability: Unix.
-
- .. versionadded:: 3.3
+ Return the total number of bytes actually read which can be less than the
+ total capacity of all the objects.
+ The operating system may set a limit (:func:`sysconf` value
+ ``'SC_IOV_MAX'``) on the number of buffers that can be used.
-.. function:: preadv(fd, buffers, offset, flags=0)
-
- Combines the functionality of :func:`os.readv` and :func:`os.pread`. It
- reads from a file descriptor *fd* into a number of mutable :term:`bytes-like
- objects <bytes-like object>` *buffers*. As :func:`os.readv`, it will transfer
- data into each buffer until it is full and then move on to the next buffer in
- the sequence to hold the rest of the data. Its fourth argument, *offset*,
- specifies the file offset at which the input operation is to be performed.
- :func:`~os.preadv` return the total number of bytes read (which can be less than
- the total capacity of all the objects).
-
- The flags argument contains a bitwise OR of zero or more of the following
- flags:
-
- - RWF_HIPRI
- - RWF_NOWAIT
-
- Using non-zero flags requires Linux 4.6 or newer.
-
- Availability: Linux (version 2.6.30), FreeBSD 6.0 and newer,
- OpenBSD (version 2.7 and newer).
-
- .. versionadded:: 3.7
-
-
-.. data:: RWF_HIPRI
-
- High priority read/write. Allows block-based filesystems to use polling
- of the device, which provides lower latency, but may use additional
- resources. (Currently, this feature is usable only on a file descriptor
- opened using the O_DIRECT flag.)
-
- Availability: Linux (version 4.6).
-
- .. versionadded:: 3.7
-
-
-.. data:: RWF_NOWAIT
-
- Do not wait for data which is not immediately available. If this flag
- is specified, the preadv2() system call will return instantly
- if it would have to read data from the backing storage or wait for a lock.
- If some data was successfully read, it will return the number of bytes
- read. If no bytes were read, it will return -1 and set errno to EAGAIN.
- Currently, this flag is meaningful only for preadv2().
-
- Availability: Linux (version 4.14).
+ Availability: Unix.
- .. versionadded:: 3.7
+ .. versionadded:: 3.3
.. function:: tcgetpgrp(fd)
@@ -1319,8 +1336,9 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
.. function:: write(fd, str)
- Write the bytestring in *str* to file descriptor *fd*. Return the number of
- bytes actually written.
+ Write the bytestring in *str* to file descriptor *fd*.
+
+ Return the number of bytes actually written.
.. note::
@@ -1338,14 +1356,15 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
.. function:: writev(fd, buffers)
- Write the contents of *buffers* to file descriptor *fd*. *buffers* must be a
- sequence of :term:`bytes-like objects <bytes-like object>`. Buffers are
- processed in array order. Entire contents of first buffer is written before
- proceeding to second, and so on. The operating system may set a limit
- (sysconf() value SC_IOV_MAX) on the number of buffers that can be used.
+ Write the contents of *buffers* to file descriptor *fd*. *buffers* must be
+ a sequence of :term:`bytes-like objects <bytes-like object>`. Buffers are
+ processed in array order. Entire contents of the first buffer is written
+ before proceeding to the second, and so on.
+
+ Returns the total number of bytes actually written.
- :func:`~os.writev` writes the contents of each object to the file descriptor
- and returns the total number of bytes written.
+ The operating system may set a limit (:func:`sysconf` value
+ ``'SC_IOV_MAX'``) on the number of buffers that can be used.
Availability: Unix.
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 2471989ec7b9..9989eaf5eac5 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -1091,9 +1091,10 @@ The new :func:`~os.register_at_fork` function allows registering Python
callbacks to be executed at process fork.
(Contributed by Antoine Pitrou in :issue:`16500`.)
-Exposed the *preadv*, *preadv2*, *pwritev* and *pwritev2* system calls through
-the new :func:`~os.preadv` and :func:`~os.pwritev` functions.
-(Contributed by Pablo Galindo in :issue:`31368`.)
+Added :func:`os.preadv` (combine the functionality of :func:`os.readv` and
+:func:`os.pread`) and :func:`os.pwritev` functions (combine the functionality
+of :func:`os.writev` and :func:`os.pwrite`). (Contributed by Pablo Galindo in
+:issue:`31368`.)
The mode argument of :func:`os.makedirs` no longer affects the file
permission bits of newly-created intermediate-level directories.
[View Less]
1
0

May 30, 2018
https://github.com/python/cpython/commit/5191892c29e1d84c9135f15e7620b89c75…
commit: 5191892c29e1d84c9135f15e7620b89c75e03d56
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington(a)users.noreply.github.com>
committer: Yury Selivanov <yury(a)magic.io>
date: 2018-05-30T19:09:00-04:00
summary:
3.6 what's new: fix a reference to PEP 528 (GH-7113) (#7256)
(cherry picked from commit 495e567a2b3bbe3b99f0c253edf12997a9ff4ee1)
Co-authored-by: Dmitry Shachnev <mitya57(a)…
[View More]users.noreply.github.com>
files:
M Doc/whatsnew/3.6.rst
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst
index cb8c53ac3b18..ed489c101c1b 100644
--- a/Doc/whatsnew/3.6.rst
+++ b/Doc/whatsnew/3.6.rst
@@ -148,7 +148,7 @@ Security improvements:
Windows improvements:
-* :ref:`PEP 528 <whatsnew36-pep529>` and :ref:`PEP 529 <whatsnew36-pep529>`,
+* :ref:`PEP 528 <whatsnew36-pep528>` and :ref:`PEP 529 <whatsnew36-pep529>`,
Windows filesystem and console encoding changed to UTF-8.
* The ``py.exe`` launcher, when used interactively, no longer prefers
[View Less]
1
0