Skip to content

Commit 786bb70

Browse files
committed
Tweak docs a bit
1 parent 0c26de9 commit 786bb70

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/dict_object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ stick with standard Python 3 code in your Py2/3 compatible codebase::
1313
1414
# Assuming d is a native dict ...
1515

16-
for item in d:
16+
for key in d:
1717
# code here
1818

1919
for item in d.items():

docs/isinstance.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ for details.
6060
Passing data to/from Python 2 libraries
6161
---------------------------------------
6262

63-
If you are passing any of the backported types (``bytes``, ``str``,
64-
``int``) into brittle library code that performs type-checks using ``type()``,
63+
If you are passing any of the backported types (``bytes``, ``int``, ``dict,
64+
``str``) into brittle library code that performs type-checks using ``type()``,
6565
rather than ``isinstance()``, or requires that you pass Python 2's native types
6666
(rather than subclasses) for some other reason, it may be necessary to upcast
6767
the types from ``future`` to their native superclasses on Py2.

0 commit comments

Comments
 (0)