Skip to content

Commit 9bdbf5e

Browse files
committed
Docs: add mention of collections.Counter, collections.OrderedDict backports for Py2.6
1 parent d0e3c69 commit 9bdbf5e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/quickstart.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ be accessed under their Python 3 names and locations in Python 2::
9797
import queue
9898
import configparser
9999
from collections import UserList
100+
from collections import Counter, OrderedDict # even on Py2.6
100101
from itertools import filterfalse, zip_longest
101102

102103
import html

docs/standard_library_imports.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ install_hooks() call
7070
--------------------
7171

7272
The fourth interface to the reorganized standard library is via an
73-
explicit call to ``install_hooks``::
73+
explicit call to ``install_hooks()``::
7474

7575
from future import standard_library
7676
standard_library.install_hooks()
@@ -117,12 +117,13 @@ modules on Py2::
117117
List of standard library modules
118118
--------------------------------
119119

120-
The modules available via ``future.moves`` are::
120+
The modules available from ``future.moves`` via one of the interfaces above are::
121121

122122
import socketserver
123123
import queue
124124
import configparser
125125
from collections import UserList
126+
from collections import Counter, OrderedDict # backported to Py2.6
126127
from itertools import filterfalse, zip_longest
127128
128129
import html

0 commit comments

Comments
 (0)