Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd53f98

Browse files
committed
Issue #23733: Mention bytes.__mod__ in the porting HOWTO.
1 parent 65da9a8 commit fd53f98

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/howto/pyporting.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,12 @@ that's ``str``/``bytes`` in Python 2 and ``bytes`` in Python 3). The following
207207
table lists the **unique** methods of each data type across Python 2 & 3
208208
(e.g., the ``decode()`` method is usable on the equivalent binary data type in
209209
either Python 2 or 3, but it can't be used by the text data type consistently
210-
between Python 2 and 3 because ``str`` in Python 3 doesn't have the method).
210+
between Python 2 and 3 because ``str`` in Python 3 doesn't have the method). Due
211+
note that as of Python 3.5 the ``__mod__`` method was added to the bytes type.
211212

212213
======================== =====================
213214
**Text data** **Binary data**
214215
------------------------ ---------------------
215-
__mod__ (``%`` operator)
216-
------------------------ ---------------------
217216
\ decode
218217
------------------------ ---------------------
219218
encode

0 commit comments

Comments
 (0)