File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,36 @@ module (see PEP 567) for Python 3.6.
11
11
**Important: ** at this moment this package does not provide an
12
12
asyncio event loop with PEP 567 support yet. Stay tuned for updates.
13
13
14
- Documentation: https://docs.python.org/3.7/library/contextvars.html
15
14
16
- Usage:
15
+ Documentation
16
+ =============
17
+
18
+ Read the official ``contextvars `` module documentation here:
19
+ https://docs.python.org/3.7/library/contextvars.html
20
+
21
+
22
+ `PEP 567 <https://www.python.org/dev/peps/pep-0567/ >`_ also provides
23
+ a comprehensive overview of the API and explains the design choices.
24
+
25
+
26
+ Installation
27
+ ============
28
+
29
+ .. code-block :: bash
30
+
31
+ $ pip install pep567
32
+
33
+
34
+ Usage
35
+ =====
17
36
18
37
.. code-block :: python
19
38
20
39
try :
40
+ # Python 3.7
21
41
import contextvars
22
42
except ImportError :
43
+ # Python <= 3.6
23
44
import pep567 as contextvars
24
45
25
46
my_var = contextvars.ContextVar(' my_var' )
You can’t perform that action at this time.
0 commit comments