bpo-29751: DOC: PyLong_FromString wrong on number with leading zero a… by csabella · Pull Request #915 · python/cpython (original) (raw)
The rest of the text refers to the first argument by name as *str*
, not “the *str*
”, so I would drop “the” and just write “If *base*
is 0, *str*
is interpreted . . .”
Spelling: defintion → definition.
What does “a literal 0 evaluates as *base*
0” mean? This is already qualified with “if *base*
is 0”.
I understand the “:attr:” markup is supposed to be for class attributes. Is “decinteger” a reference to the grammar definition:
decinteger: nonzerodigit (["_
"] digit)* | "0"+ (["_
"] "0")*
You may have to add more text to make this obvious, or explain what you mean by one “beginning with 0”.