[docs] [issue11681] -b option undocumented

Greg Bengeult report at bugs.python.org
Wed Jan 11 16:17:04 EST 2017


Greg Bengeult added the comment:

I have attached a patch for 2.7 that adds -b and -bb to the command line documentation in Modules/main.c and Doc/library/cmdline.rst, following the suggested text provided by Martin.

Interestingly, unicode(), bytearray(), and str() don't seem to be transitive in 2.7.

>>> u"3" == str(3)
True

>>> str(3) == bytearray("3")
True

>>> u"3" == bytearray("3")
False

----------
nosy: +gbengeult
Added file: http://bugs.python.org/file46261/b_option.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11681>
_______________________________________


More information about the docs mailing list