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
ff5632ef
Commit
ff5632ef
authored
Jul 09, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that successful() is True if killed with a GreenletExit. [skip ci]
parent
4293f032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gevent/greenlet.py
gevent/greenlet.py
+5
-1
No files found.
gevent/greenlet.py
View file @
ff5632ef
...
@@ -225,7 +225,11 @@ class Greenlet(greenlet):
...
@@ -225,7 +225,11 @@ class Greenlet(greenlet):
def
successful
(
self
):
def
successful
(
self
):
"""Return true if and only if the greenlet has finished execution successfully,
"""Return true if and only if the greenlet has finished execution successfully,
that is, without raising an error."""
that is, without raising an error.
.. note:: A greenlet that has been killed with the default :class:`GreenletExit` exception
is considered successful. That is, ``GreenletExit`` is not considered an error.
"""
return
self
.
_exc_info
and
self
.
_exc_info
[
1
]
is
None
return
self
.
_exc_info
and
self
.
_exc_info
[
1
]
is
None
def
__repr__
(
self
):
def
__repr__
(
self
):
...
...
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