Skip to content

Commit

Permalink
[3.10] pythongh-95778: add doc missing in some places (pythonGH-100627).
Browse files Browse the repository at this point in the history
(cherry picked from commit 4652182)

Co-authored-by: Éric <earaujo@caravan.coop>
  • Loading branch information
merwok committed Jan 16, 2023
1 parent 6b46cb4 commit a099337
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Misc/python.man
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ Set implementation specific option. The following options are available:

-X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None'

-X int_max_str_digits=number: limit the size of int<->str conversions.
This helps avoid denial of service attacks when parsing untrusted data.
The default is sys.int_info.default_max_str_digits. 0 disables.

.TP
.B \-x
Skip the first line of the source. This is intended for a DOS
Expand Down Expand Up @@ -487,6 +491,11 @@ values.

The integer must be a decimal number in the range [0,4294967295]. Specifying
the value 0 will disable hash randomization.
.IP PYTHONINTMAXSTRDIGITS
Limit the maximum digit characters in an int value
when converting from a string and when converting an int back to a str.
A value of 0 disables the limit. Conversions to or from bases 2, 4, 8,
16, and 32 are never limited.
.IP PYTHONMALLOC
Set the Python memory allocators and/or install debug hooks. The available
memory allocators are
Expand Down

0 comments on commit a099337

Please sign in to comment.