]> granicus.if.org Git - python/commitdiff
Issue #23733: Mention bytes.__mod__ in the porting HOWTO.
authorBrett Cannon <brett@python.org>
Mon, 13 Apr 2015 20:21:07 +0000 (16:21 -0400)
committerBrett Cannon <brett@python.org>
Mon, 13 Apr 2015 20:21:07 +0000 (16:21 -0400)
Doc/howto/pyporting.rst

index 7adeea77aac0b5c0a539aa056cad23c63b6dc6e4..7fafc3c2d997699bc3bbf67f6698bd0236cd40d6 100644 (file)
@@ -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