mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Use $type instead of $cls in the signature specification.
This commit is contained in:
parent
6b794b8b59
commit
6b7786bac2
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ is correctly rounded.\n\
|
|||
\n");
|
||||
|
||||
PyDoc_STRVAR(doc_from_float,
|
||||
"from_float($cls, f, /)\n--\n\n\
|
||||
"from_float($type, f, /)\n--\n\n\
|
||||
Class method that converts a float to a decimal number, exactly.\n\
|
||||
Since 0.1 is not exactly representable in binary floating point,\n\
|
||||
Decimal.from_float(0.1) is not the same as Decimal('0.1').\n\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue