summaryrefslogtreecommitdiffstats
path: root/Doc/using
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-20 14:54:57 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-20 14:54:57 (GMT)
commit1dd49824df49d0132b21d90c12bb596da89d7a17 (patch)
tree7c76fae39c0d2160d8abcb5e908d7b46a9cd8f01 /Doc/using
parentee4c0b9dcfb550094cca086a032d44393b5c3642 (diff)
downloadcpython-1dd49824df49d0132b21d90c12bb596da89d7a17.zip
cpython-1dd49824df49d0132b21d90c12bb596da89d7a17.tar.gz
cpython-1dd49824df49d0132b21d90c12bb596da89d7a17.tar.bz2
Issue #23681: The -b option now affects comparisons of bytes with int.
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 4017ce8..f52afa0 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -190,9 +190,12 @@ Miscellaneous options
.. cmdoption:: -b
- Issue a warning when comparing str and bytes. Issue an error when the
+ Issue a warning when comparing :class:`bytes` or :class:`bytearray` with
+ :class:`str` or :class:`bytes` with :class:`int`. Issue an error when the
option is given twice (:option:`-bb`).
+ .. versionchanged: 3.5
+ Affects comparisons of :class:`bytes` with :class:`int`.
.. cmdoption:: -B