File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Original file line number Diff line number Diff line change @@ -242,12 +242,13 @@ Miscellaneous options
242
242
243
243
.. option :: -b
244
244
245
- Issue a warning when comparing :class: `bytes ` or :class: `bytearray ` with
246
- :class: `str ` or :class: `bytes ` with :class: `int `. Issue an error when the
247
- option is given twice (:option: `!-bb `).
245
+ Issue a warning when converting :class: `bytes ` or :class: `bytearray ` to
246
+ :class: `str ` without specifying encoding or comparing :class: `!bytes ` or
247
+ :class: `!bytearray ` with :class: `!str ` or :class: `!bytes ` with :class: `int `.
248
+ Issue an error when the option is given twice (:option: `!-bb `).
248
249
249
250
.. versionchanged :: 3.5
250
- Affects comparisons of :class: `bytes ` with :class: `int `.
251
+ Affects also comparisons of :class: `bytes ` with :class: `int `.
251
252
252
253
.. option :: -B
253
254
@@ -386,6 +387,8 @@ Miscellaneous options
386
387
Don't add the :data: `user site-packages directory <site.USER_SITE> ` to
387
388
:data: `sys.path `.
388
389
390
+ See also :envvar: `PYTHONNOUSERSITE `.
391
+
389
392
.. seealso ::
390
393
391
394
:pep: `370 ` -- Per user site-packages directory
@@ -517,7 +520,7 @@ Miscellaneous options
517
520
asyncio' ``. See also :envvar: `PYTHONPROFILEIMPORTTIME `.
518
521
* ``-X dev ``: enable :ref: `Python Development Mode <devmode >`, introducing
519
522
additional runtime checks that are too expensive to be enabled by
520
- default.
523
+ default. See also :envvar: ` PYTHONDEVMODE `.
521
524
* ``-X utf8 `` enables the :ref: `Python UTF-8 Mode <utf8-mode >`.
522
525
``-X utf8=0 `` explicitly disables :ref: `Python UTF-8 Mode <utf8-mode >`
523
526
(even when it would otherwise activate automatically).
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ static const char usage_line[] =
33
33
/* Lines sorted by option name; keep in sync with usage_envvars* below */
34
34
static const char usage_help [] = "\
35
35
Options (and corresponding environment variables):\n\
36
- -b : issue warnings about str(bytes_instance), str(bytearray_instance) \n\
37
- and comparing bytes/bytearray with str. (-bb: issue errors)\n\
36
+ -b : issue warnings about converting bytes/bytearray to str and comparing \n\
37
+ bytes/bytearray with str or bytes with int . (-bb: issue errors)\n\
38
38
-B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x\n\
39
39
-c cmd : program passed in as string (terminates option list)\n\
40
40
-d : turn on parser debugging output (for experts only, only works on\n\
You can’t perform that action at this time.
0 commit comments