Commit 514beb41 authored by Jason Madden's avatar Jason Madden

Preparing release 20.12.1

parent 13684f0f
......@@ -6,6 +6,37 @@
.. towncrier release notes start
20.12.1 (2020-12-27)
====================
Features
--------
- Make :class:`gevent.Greenlet` objects function as context managers.
When the ``with`` suite finishes, execution doesn't continue until the
greenlet is finished. This can be a simpler alternative to a
:class:`gevent.pool.Group` when the lifetime of greenlets can be
lexically scoped.
Suggested by André Caron.
See :issue:`1324`.
Bugfixes
--------
- Make gevent's ``Semaphore`` objects properly handle native thread
identifiers larger than can be stored in a C ``long`` on Python 3,
instead of raising an ``OverflowError``.
Reported by TheYOSH.
See :issue:`1733`.
----
20.12.0 (2020-12-22)
====================
......
Make :class:`gevent.Greenlet` objects function as context managers.
When the ``with`` suite finishes, execution doesn't continue until the
greenlet is finished. This can be a simpler alternative to a
:class:`gevent.pool.Group` when the lifetime of greenlets can be
lexically scoped.
Suggested by André Caron.
Make gevent's ``Semaphore`` objects properly handle native thread
identifiers larger than can be stored in a C ``long`` on Python 3,
instead of raising an ``OverflowError``.
Reported by TheYOSH.
......@@ -27,7 +27,7 @@ version_info = _version_info(20, 0, 0, 'dev', 0) # XXX: Remove me
#: Use ``pkg_resources.parse_version(__version__)`` or
#: ``packaging.version.Version(__version__)`` to get a machine-usable
#: value.
__version__ = '20.12.1.dev0'
__version__ = '20.12.1'
__all__ = [
......
......@@ -203,7 +203,7 @@ class Greenlet(greenlet):
Greenlet objects are now more careful to verify that their ``parent`` is really
a gevent hub, raising a ``TypeError`` earlier instead of an ``AttributeError`` later.
.. versionchanged:: NEXT
.. versionchanged:: 20.12.1
Greenlet objects now function as context managers. Exiting the ``with`` suite
ensures that the greenlet has completed by :meth:`joining <join>`
the greenlet (blocking, with
......@@ -769,7 +769,7 @@ class Greenlet(greenlet):
If this greenlet had never been switched to, killing it will
prevent it from *ever* being switched to. Links (:meth:`rawlink`)
will still be executed, though.
.. versionchanged:: NEXT
.. versionchanged:: 20.12.1
If this greenlet is :meth:`ready`, immediately return instead of
requiring a trip around the event loop.
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment