Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a8a79cac
Commit
a8a79cac
authored
May 03, 2019
by
Andre Delfino
Committed by
Miss Islington (bot)
May 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve grammar on async context managers and shorten text (GH-12379)
parent
5861cddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/reference/datamodel.rst
Doc/reference/datamodel.rst
+4
-4
No files found.
Doc/reference/datamodel.rst
View file @
a8a79cac
...
...
@@ -2680,13 +2680,13 @@ Asynchronous context managers can be used in an :keyword:`async with` statement.
.. method:: object.__aenter__(self)
This method is semantically similar to the :meth:`__enter__`, with
only
difference that it must return an *awaitable*.
Semantically similar to :meth:`__enter__`, the
only
difference
being
that it must return an *awaitable*.
.. method:: object.__aexit__(self, exc_type, exc_value, traceback)
This method is semantically similar to the :meth:`__exit__`, with
only
difference that it must return an *awaitable*.
Semantically similar to :meth:`__exit__`, the
only
difference
being
that it must return an *awaitable*.
An example of an asynchronous context manager class::
...
...
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