8000 Docs: mention more available backports of stdlib packages · thecodingchicken/python-future@b8b9523 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8b9523

Browse files
committed
Docs: mention more available backports of stdlib packages
1 parent d1f18ac commit b8b9523

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

docs/standard_library_imports.rst

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,26 @@ External backports
173173
Backports of the following modules from the Python 3.x standard library are
174174
available independently of the python-future project::
175175

176-
import enum # pip install enum34
177-
import singledispatch # pip install singledispatch
178-
import pathlib # pip install pathlib
179-
import statistics # is a backport available?
176+
import enum # pip install enum34
177+
import singledispatch # pip install singledispatch
178+
import pathlib # pip install pathlib
180179

180+
A few modules from Python 3.4 and 3.3 are also available in the ``backports``
181+
package namespace::
182+
183+
from backports import lzma
184+
from backports import functools_lru_cache as lru_cache
185+
186+
After ``pip install backports.lzma`` etc.
187+
188+
The following Python 2.6 backports of standard library packages from Python 2.7+
189+
are also available::
190+
191+
import argparse # pip install argparse
192+
import importlib # pip install importlib
193+
import unittest2 as unittest # 5155 pip install unittest2
194+
195+
These are included in Python 2.7 and Python 3.x.
181196

182197
Included backports
183198
------------------

0 commit comments

Comments
 (0)
0