mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Issue #23681: The -b option now affects comparisons of bytes with int.
This commit is contained in:
parent
ee4c0b9dcf
commit
1dd49824df
5 changed files with 53 additions and 22 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue