[Python-checkins] cpython: Issue #23733: Mention bytes.__mod__ in the porting HOWTO.

brett.cannon python-checkins at python.org
Mon Apr 13 22:21:14 CEST 2015


https://hg.python.org/cpython/rev/1ef1b9922655
changeset:   95612:1ef1b9922655
user:        Brett Cannon <brett at python.org>
date:        Mon Apr 13 16:21:07 2015 -0400
summary:
  Issue #23733: Mention bytes.__mod__ in the porting HOWTO.

files:
  Doc/howto/pyporting.rst |  5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)


diff --git a/Doc/howto/pyporting.rst b/Doc/howto/pyporting.rst
--- a/Doc/howto/pyporting.rst
+++ b/Doc/howto/pyporting.rst
@@ -207,13 +207,12 @@
 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list