summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Objects/floatobject.c
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-08-19 16:16:30 +0200
committerGitHub <[email protected]>2024-08-19 17:16:30 +0300
commit9b567afd3339f4525feab53873592cb025b14251 (patch)
tree5c8489f98dc5a9a10f66065055e5a401bbd14767 /contrib/tools/python3/Objects/floatobject.c
parent47bd121575c210d4bbb2dddcc2131759a694df05 (diff)
Library import 240819-0942 (#7994)
Co-authored-by: robot-piglet <[email protected]> Co-authored-by: hiddenpath <[email protected]> Co-authored-by: bulatman <[email protected]> Co-authored-by: robot-contrib <[email protected]> Co-authored-by: osidorkin <[email protected]> Co-authored-by: akhropov <[email protected]> Co-authored-by: akozhikhov <[email protected]> Co-authored-by: orlovorlov <[email protected]> Co-authored-by: babenko <[email protected]> Co-authored-by: shadchin <[email protected]> Co-authored-by: dmasloff <[email protected]> Co-authored-by: aleksei-le <[email protected]> Co-authored-by: coteeq <[email protected]> Co-authored-by: dimdim11 <[email protected]> Co-authored-by: robot-ya-builder <[email protected]> Co-authored-by: iaz1607 <[email protected]>
Diffstat (limited to 'contrib/tools/python3/Objects/floatobject.c')
-rw-r--r--contrib/tools/python3/Objects/floatobject.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/tools/python3/Objects/floatobject.c b/contrib/tools/python3/Objects/floatobject.c
index 7a882bfd88b..92d40e8acad 100644
--- a/contrib/tools/python3/Objects/floatobject.c
+++ b/contrib/tools/python3/Objects/floatobject.c
@@ -1644,12 +1644,12 @@ float.__new__ as float_new
x: object(c_default="NULL") = 0
/
-Convert a string or number to a floating point number, if possible.
+Convert a string or number to a floating-point number, if possible.
[clinic start generated code]*/
static PyObject *
float_new_impl(PyTypeObject *type, PyObject *x)
-/*[clinic end generated code: output=ccf1e8dc460ba6ba input=f43661b7de03e9d8]*/
+/*[clinic end generated code: output=ccf1e8dc460ba6ba input=55909f888aa0c8a6]*/
{
if (type != &PyFloat_Type) {
if (x == NULL) {
@@ -1745,13 +1745,13 @@ You probably don't want to use this function.
It exists mainly to be used in Python's test suite.
This function returns whichever of 'unknown', 'IEEE, big-endian' or 'IEEE,
-little-endian' best describes the format of floating point numbers used by the
+little-endian' best describes the format of floating-point numbers used by the
C type named by typestr.
[clinic start generated code]*/
static PyObject *
float___getformat___impl(PyTypeObject *type, const char *typestr)
-/*[clinic end generated code: output=2bfb987228cc9628 input=d5a52600f835ad67]*/
+/*[clinic end generated code: output=2bfb987228cc9628 input=90d5e246409a246e]*/
{
float_format_type r;
@@ -1937,7 +1937,7 @@ _init_global_state(void)
float_format_type detected_double_format, detected_float_format;
/* We attempt to determine if this machine is using IEEE
- floating point formats by peering at the bits of some
+ floating-point formats by peering at the bits of some
carefully chosen values. If it looks like we are on an
IEEE platform, the float packing/unpacking routines can
just copy bits, if not they resort to arithmetic & shifts