]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update release notes and set version to 5.0b1 2259/head
authorBen Darnell <ben@bendarnell.com>
Sat, 27 Jan 2018 22:25:34 +0000 (17:25 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 27 Jan 2018 22:25:34 +0000 (17:25 -0500)
docs/iostream.rst
docs/releases/v5.0.0.rst
setup.py
tornado/__init__.py

index 9306fbfa9d45e1ec24a7e0fd51ed54bfd6ed46f9..2ac784ddece6122a6631734ef9f2f5e24b512117 100644 (file)
@@ -13,6 +13,7 @@
 
    .. automethod:: BaseIOStream.write
    .. automethod:: BaseIOStream.read_bytes
+   .. automethod:: BaseIOStream.read_into
    .. automethod:: BaseIOStream.read_until
    .. automethod:: BaseIOStream.read_until_regex
    .. automethod:: BaseIOStream.read_until_close
index e9633fe83dc23592e5bb45e4a8e61d49c48952c9..c968b8fe04f3bc981f349613e01c16da6560d704 100644 (file)
@@ -78,6 +78,11 @@ Other notes
 - Python 3.6 or higher is recommended, because it features more
   efficient garbage collection of `asyncio.Future` objects.
 
+`tornado.auth`
+~~~~~~~~~~~~~~
+
+- `.GoogleOAuth2Mixin` now uses a newer set of URLs.
+
 `tornado.autoreload`
 ~~~~~~~~~~~~~~~~~~~~
 
@@ -140,6 +145,8 @@ Other notes
 `tornado.httpserver`
 ~~~~~~~~~~~~~~~~~~~~
 
+- It is now possible for a client to reuse a connection after sending
+  a chunked request.
 - If a client sends a malformed request, the server now responds with
   a 400 error instead of simply closing the connection.
 - ``Content-Length`` and ``Transfer-Encoding`` headers are no longer
@@ -171,6 +178,8 @@ Other notes
 - ``IOLoop.initialized`` has been removed.
 - On Python 3, the `asyncio`-backed `.IOLoop` is always used and
   alternative `.IOLoop` implementations cannot be configured.
+  `.IOLoop.current` and related methods pass through to
+  `asyncio.get_event_loop`.
 - `~.IOLoop.run_sync` cancels its argument on a timeout. This
   results in better stack traces (and avoids log messages about leaks)
   in native coroutines.
@@ -187,11 +196,16 @@ Other notes
   `.IOLoop.set_blocking_log_threshold` methods are deprecated because
   they are not implemented for the `asyncio` event loop`. Use the
   ``PYTHONASYNCIODEBUG=1`` environment variable instead.
+- `.IOLoop.clear_current` now works if it is called before any
+  current loop is established.
+- The ``IOLoop.initialized`` method has been removed.
 
 `tornado.iostream`
 ~~~~~~~~~~~~~~~~~~
 
 - The ``io_loop`` argument to the `.IOStream` constructor has been removed.
+- New method `.BaseIOStream.read_into` provides a minimal-copy alternative to
+  `.BaseIOStream.read_bytes`.
 - `.BaseIOStream.write` is now much more efficient for very large amounts of data.
 - Fixed some cases in which ``IOStream.error`` could be inaccurate.
 - Writing a `memoryview` can no longer result in "BufferError:
@@ -228,9 +242,12 @@ Other notes
   when appropriate; referencing them explicitly is no longer
   recommended.
 - Starting an `.IOLoop` or making it current now also sets the
-  `asyncio` event loop for the current thread.
+  `asyncio` event loop for the current thread. Closing an `.IOLoop`
+  closes the corresponding `asyncio` event loop.
 - `.to_tornado_future` and `.to_asyncio_future` are deprecated since
   they are now no-ops.
+- `~.AnyThreadEventLoopPolicy` can now be used to easily allow the creation
+  of event loops on any thread (similar to Tornado's prior policy).
 
 `tornado.platform.caresresolver`
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -282,6 +299,9 @@ Other notes
 - The deprecated ``tornado.testing.get_unused_port`` and
   ``tornado.testing.LogTrapTestCase`` have been removed.
 - `.AsyncHTTPTestCase.fetch` now supports absolute URLs.
+- `.AsyncHTTPTestCase.fetch` now connects to ``127.0.0.1``
+  instead of ``localhost`` to be more robust against faulty
+  ipv6 configurations.
 
 `tornado.util`
 ~~~~~~~~~~~~~~
index 6da90103f17e68136121e1c3fdfd9afaa31b6435..ae83143f696a4ed61b8f5639e91c9132c7d0cc86 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -103,7 +103,7 @@ http://api.mongodb.org/python/current/installation.html#osx
 
 kwargs = {}
 
-version = "5.0a1"
+version = "5.0b1"
 
 with open('README.rst') as f:
     kwargs['long_description'] = f.read()
index 3bd16d99e54f8f94a8b604edf3bede25be1b3e6e..41d10ec29f2d7fb54a49e0c778645cd5c509be76 100644 (file)
@@ -24,5 +24,5 @@ from __future__ import absolute_import, division, print_function
 # is zero for an official release, positive for a development branch,
 # or negative for a release candidate or beta (after the base version
 # number has been incremented)
-version = "5.0a1"
-version_info = (5, 0, 0, -99)
+version = "5.0b1"
+version_info = (5, 0, 0, -98)