Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
514beb41
Commit
514beb41
authored
Dec 27, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing release 20.12.1
parent
13684f0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
15 deletions
+34
-15
CHANGES.rst
CHANGES.rst
+31
-0
docs/changes/1324.feature
docs/changes/1324.feature
+0
-7
docs/changes/1733.bugfix
docs/changes/1733.bugfix
+0
-5
src/gevent/__init__.py
src/gevent/__init__.py
+1
-1
src/gevent/greenlet.py
src/gevent/greenlet.py
+2
-2
No files found.
CHANGES.rst
View file @
514beb41
...
...
@@ -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)
====================
...
...
docs/changes/1324.feature
deleted
100644 → 0
View file @
13684f0f
Make
:
class
:
`gevent.Greenlet`
objects
function
as
context
managers.
When
the ``with`` suite finishes, execution doesn't continue until the
greenlet
is
finished.
This
c
an
be a simpler alternative to a
:
class
:
`gevent.pool.Group`
when
the
lifetime
of
greenlets
c
an
be
lexically
scoped.
Suggested
by
André
Caron.
docs/changes/1733.bugfix
deleted
100644 → 0
View file @
13684f0f
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.
src/gevent/__init__.py
View file @
514beb41
...
...
@@ -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__
=
[
...
...
src/gevent/greenlet.py
View file @
514beb41
...
...
@@ -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.
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment