Issue 20340: -bb option does not have different behavior than -b option (original) (raw)

Issue20340

Created on 2014-01-22 02:41 by Arfrever, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (1)
msg208736 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2014-01-22 02:41
-bb option does not have different behavior than -b option since Python 3.2. http://docs.python.org/3.4/using/cmdline.html#cmdoption-b says: "Issue a warning when comparing str and bytes. Issue an error when the option is given twice (-bb)." (http://docs.python.org/3.4/howto/pyporting.html#deal-with-the-bytes-string-dichotomy also documents behavior present in Python 3.1.) $ python3.1 -b -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $ python3.1 -bb -c 'print("" == b""); print("Program still running")' Traceback (most recent call last): File "", line 1, in BytesWarning: Comparison between bytes and string $ python3.2 -b -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $ python3.2 -bb -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $ python3.3 -b -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $ python3.3 -bb -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $ python3.4 -b -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $ python3.4 -bb -c 'print("" == b""); print("Program still running")' -c:1: BytesWarning: Comparison between bytes and string False Program still running $
History
Date User Action Args
2022-04-11 14:57:57 admin set github: 64539
2014-01-22 21:42:41 Arfrever set status: open -> closedresolution: not a bug
2014-01-22 02:41:59 Arfrever create