Issue #23681: The -b option now affects comparisons of bytes with int.

This commit is contained in:
Serhiy Storchaka 2015-03-20 16:54:57 +02:00
parent ee4c0b9dcf
commit 1dd49824df
5 changed files with 53 additions and 22 deletions

View file

@ -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