summaryrefslogtreecommitdiffstats
path: root/Doc/howto/pyporting.rst
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-04-13 20:21:07 (GMT)
committerBrett Cannon <brett@python.org>2015-04-13 20:21:07 (GMT)
commitfd53f984593ffc9d68e3785088c6f0c6ef226d4f (patch)
tree7e829efede3d1c0ac9da3f2ef8d9adba924c50d0 /Doc/howto/pyporting.rst
parent65da9a87c543eec3126ced378464da0fc8cd7542 (diff)
downloadcpython-fd53f984593ffc9d68e3785088c6f0c6ef226d4f.zip
cpython-fd53f984593ffc9d68e3785088c6f0c6ef226d4f.tar.gz
cpython-fd53f984593ffc9d68e3785088c6f0c6ef226d4f.tar.bz2
Issue #23733: Mention bytes.__mod__ in the porting HOWTO.
Diffstat (limited to 'Doc/howto/pyporting.rst')
-rw-r--r--Doc/howto/pyporting.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/howto/pyporting.rst b/Doc/howto/pyporting.rst
index 7adeea7..7fafc3c 100644
--- a/Doc/howto/pyporting.rst
+++ b/Doc/howto/pyporting.rst
@@ -207,13 +207,12 @@ that's ``str``/``bytes`` in Python 2 and ``bytes`` in Python 3). The following
table lists the **unique** methods of each data type across Python 2 & 3
(e.g., the ``decode()`` method is usable on the equivalent binary data type in
either Python 2 or 3, but it can't be used by the text data type consistently
-between Python 2 and 3 because ``str`` in Python 3 doesn't have the method).
+between Python 2 and 3 because ``str`` in Python 3 doesn't have the method). Due
+note that as of Python 3.5 the ``__mod__`` method was added to the bytes type.
======================== =====================
**Text data** **Binary data**
------------------------ ---------------------
-__mod__ (``%`` operator)
------------------------- ---------------------
\ decode
------------------------ ---------------------
encode