summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/_pydecimal.py2
-rw-r--r--Lib/colorsys.py2
-rw-r--r--Lib/csv.py2
-rw-r--r--Lib/decimal.py4
-rw-r--r--Lib/email/utils.py2
-rw-r--r--Lib/http/cookies.py2
-rw-r--r--Lib/pstats.py2
-rw-r--r--Lib/random.py2
-rw-r--r--Lib/sched.py2
-rw-r--r--Lib/statistics.py2
-rwxr-xr-xLib/test/test_array.py2
-rw-r--r--Lib/test/test_complex.py2
-rw-r--r--Lib/test/test_ctypes/test_arrays.py4
-rw-r--r--Lib/test/test_faulthandler.py2
-rw-r--r--Lib/test/test_format.py2
-rw-r--r--Lib/test/test_os.py2
-rw-r--r--Lib/test/test_statistics.py2
-rw-r--r--Lib/test/test_tokenize.py2
-rw-r--r--Lib/threading.py6
-rw-r--r--Lib/tkinter/simpledialog.py2
20 files changed, 24 insertions, 24 deletions
diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py
index 613123e..75df3db 100644
--- a/Lib/_pydecimal.py
+++ b/Lib/_pydecimal.py
@@ -424,7 +424,7 @@ def localcontext(ctx=None, **kwargs):
# numbers.py for more detail.
class Decimal(object):
- """Floating point class for decimal arithmetic."""
+ """Floating-point class for decimal arithmetic."""
__slots__ = ('_exp','_int','_sign', '_is_special')
# Generally, the value of the Decimal instance is given by
diff --git a/Lib/colorsys.py b/Lib/colorsys.py
index bc897bd..e97f917 100644
--- a/Lib/colorsys.py
+++ b/Lib/colorsys.py
@@ -24,7 +24,7 @@ HSV: Hue, Saturation, Value
__all__ = ["rgb_to_yiq","yiq_to_rgb","rgb_to_hls","hls_to_rgb",
"rgb_to_hsv","hsv_to_rgb"]
-# Some floating point constants
+# Some floating-point constants
ONE_THIRD = 1.0/3.0
ONE_SIXTH = 1.0/6.0
diff --git a/Lib/csv.py b/Lib/csv.py
index 75e35b2..cd20265 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -47,7 +47,7 @@ SETTINGS:
field contains either the quotechar or the delimiter
csv.QUOTE_ALL means that quotes are always placed around fields.
csv.QUOTE_NONNUMERIC means that quotes are always placed around
- fields which do not parse as integers or floating point
+ fields which do not parse as integers or floating-point
numbers.
csv.QUOTE_STRINGS means that quotes are always placed around
fields which are strings. Note that the Python value None
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 13a0dcb..f8c548e 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -1,6 +1,6 @@
-"""Decimal fixed point and floating point arithmetic.
+"""Decimal fixed-point and floating-point arithmetic.
-This is an implementation of decimal floating point arithmetic based on
+This is an implementation of decimal floating-point arithmetic based on
the General Decimal Arithmetic Specification:
http://speleotrove.com/decimal/decarith.html
diff --git a/Lib/email/utils.py b/Lib/email/utils.py
index 6d897ca..f276303 100644
--- a/Lib/email/utils.py
+++ b/Lib/email/utils.py
@@ -241,7 +241,7 @@ def formatdate(timeval=None, localtime=False, usegmt=False):
Fri, 09 Nov 2001 01:08:47 -0000
- Optional timeval if given is a floating point time value as accepted by
+ Optional timeval if given is a floating-point time value as accepted by
gmtime() and localtime(), otherwise the current time is used.
Optional localtime is a flag that when True, interprets timeval, and
diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py
index 35ac2dc..351faf4 100644
--- a/Lib/http/cookies.py
+++ b/Lib/http/cookies.py
@@ -234,7 +234,7 @@ def _unquote(str):
# header. By default, _getdate() returns the current time in the appropriate
# "expires" format for a Set-Cookie header. The one optional argument is an
# offset from now, in seconds. For example, an offset of -3600 means "one hour
-# ago". The offset may be a floating point number.
+# ago". The offset may be a floating-point number.
#
_weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
diff --git a/Lib/pstats.py b/Lib/pstats.py
index a174a54..46e18fb 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -83,7 +83,7 @@ class Stats:
method now take arbitrarily many file names as arguments.
All the print methods now take an argument that indicates how many lines
- to print. If the arg is a floating point number between 0 and 1.0, then
+ to print. If the arg is a floating-point number between 0 and 1.0, then
it is taken as a decimal percentage of the available lines to be printed
(e.g., .1 means print 10% of all available lines). If it is an integer,
it is taken to mean the number of lines of data that you wish to have
diff --git a/Lib/random.py b/Lib/random.py
index bcc11c7..f5a482b 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -1013,7 +1013,7 @@ def _parse_args(arg_list: list[str] | None):
help="print a random integer between 1 and N inclusive")
group.add_argument(
"-f", "--float", type=float, metavar="N",
- help="print a random floating point number between 1 and N inclusive")
+ help="print a random floating-point number between 1 and N inclusive")
group.add_argument(
"--test", type=int, const=10_000, nargs="?",
help=argparse.SUPPRESS)
diff --git a/Lib/sched.py b/Lib/sched.py
index 14613cf..fb20639 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -11,7 +11,7 @@ substituting time and sleep from built-in module time, or you can
implement simulated time by writing your own functions. This can
also be used to integrate scheduling with STDWIN events; the delay
function is allowed to modify the queue. Time can be expressed as
-integers or floating point numbers, as long as it is consistent.
+integers or floating-point numbers, as long as it is consistent.
Events are specified by tuples (time, priority, action, argument, kwargs).
As in UNIX, lower priority numbers mean higher priority; in this
diff --git a/Lib/statistics.py b/Lib/statistics.py
index c64c6fa..d3dd0d5 100644
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -11,7 +11,7 @@ Calculating averages
Function Description
================== ==================================================
mean Arithmetic mean (average) of data.
-fmean Fast, floating point arithmetic mean.
+fmean Fast, floating-point arithmetic mean.
geometric_mean Geometric mean of data.
harmonic_mean Harmonic mean of data.
median Median (middle value) of data.
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 95383be..47cbe60 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -1493,7 +1493,7 @@ class FPTest(NumberTest):
self.assertEqual(a, b)
else:
# On alphas treating the byte swapped bit patters as
- # floats/doubles results in floating point exceptions
+ # floats/doubles results in floating-point exceptions
# => compare the 8bit string values instead
self.assertNotEqual(a.tobytes(), b.tobytes())
b.byteswap()
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index e3a2205..c5a06c5 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -717,7 +717,7 @@ class ComplexTest(unittest.TestCase):
def test_hash(self):
for x in range(-30, 30):
self.assertEqual(hash(x), hash(complex(x, 0)))
- x /= 3.0 # now check against floating point
+ x /= 3.0 # now check against floating-point
self.assertEqual(hash(x), hash(complex(x, 0.)))
self.assertNotEqual(hash(2000005 - 1j), -1)
diff --git a/Lib/test/test_ctypes/test_arrays.py b/Lib/test/test_ctypes/test_arrays.py
index 3568cf9..6846773 100644
--- a/Lib/test/test_ctypes/test_arrays.py
+++ b/Lib/test/test_ctypes/test_arrays.py
@@ -253,7 +253,7 @@ class ArrayTestCase(unittest.TestCase):
class EmptyStruct(Structure):
_fields_ = []
- obj = (EmptyStruct * 2)() # bpo37188: Floating point exception
+ obj = (EmptyStruct * 2)() # bpo37188: Floating-point exception
self.assertEqual(sizeof(obj), 0)
def test_empty_element_array(self):
@@ -261,7 +261,7 @@ class ArrayTestCase(unittest.TestCase):
_type_ = c_int
_length_ = 0
- obj = (EmptyArray * 2)() # bpo37188: Floating point exception
+ obj = (EmptyArray * 2)() # bpo37188: Floating-point exception
self.assertEqual(sizeof(obj), 0)
def test_bpo36504_signed_int_overflow(self):
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
index 61ec8fe..60815be 100644
--- a/Lib/test/test_faulthandler.py
+++ b/Lib/test/test_faulthandler.py
@@ -236,7 +236,7 @@ class FaultHandlerTests(unittest.TestCase):
faulthandler._sigfpe()
""",
3,
- 'Floating point exception')
+ 'Floating-point exception')
@unittest.skipIf(_testcapi is None, 'need _testcapi')
@unittest.skipUnless(hasattr(signal, 'SIGBUS'), 'need signal.SIGBUS')
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index d202615..9dde63e 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -36,7 +36,7 @@ def testformat(formatstr, args, output=None, limit=None, overflowok=False):
# when 'limit' is specified, it determines how many characters
# must match exactly; lengths must always match.
# ex: limit=5, '12345678' matches '12345___'
- # (mainly for floating point format tests for which an exact match
+ # (mainly for floating-point format tests for which an exact match
# can't be guaranteed due to rounding and representation errors)
elif output and limit is not None and (
len(result)!=len(output) or result[:limit]!=output[:limit]):
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index f93937f..1e570c7 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -828,7 +828,7 @@ class UtimeTests(unittest.TestCase):
return (ns * 1e-9) + 0.5e-9
def test_utime_by_indexed(self):
- # pass times as floating point seconds as the second indexed parameter
+ # pass times as floating-point seconds as the second indexed parameter
def set_time(filename, ns):
atime_ns, mtime_ns = ns
atime = self.ns_to_sec(atime_ns)
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py
index c374c94..89201c6 100644
--- a/Lib/test/test_statistics.py
+++ b/Lib/test/test_statistics.py
@@ -1072,7 +1072,7 @@ class UnivariateCommonMixin:
def test_order_doesnt_matter(self):
# Test that the order of data points doesn't change the result.
- # CAUTION: due to floating point rounding errors, the result actually
+ # CAUTION: due to floating-point rounding errors, the result actually
# may depend on the order. Consider this test representing an ideal.
# To avoid this test failing, only test with exact values such as ints
# or Fractions.
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
index 51aeb35..de0e0b4 100644
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -228,7 +228,7 @@ def k(x):
""")
def test_float(self):
- # Floating point numbers
+ # Floating-point numbers
self.check_tokenize("x = 3.14159", """\
NAME 'x' (1, 0) (1, 1)
OP '=' (1, 2) (1, 3)
diff --git a/Lib/threading.py b/Lib/threading.py
index 31ab77c..2dcdd0c 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -336,7 +336,7 @@ class Condition:
awakened or timed out, it re-acquires the lock and returns.
When the timeout argument is present and not None, it should be a
- floating point number specifying a timeout for the operation in seconds
+ floating-point number specifying a timeout for the operation in seconds
(or fractions thereof).
When the underlying lock is an RLock, it is not released using its
@@ -646,7 +646,7 @@ class Event:
the optional timeout occurs.
When the timeout argument is present and not None, it should be a
- floating point number specifying a timeout for the operation in seconds
+ floating-point number specifying a timeout for the operation in seconds
(or fractions thereof).
This method returns the internal flag on exit, so it will always return
@@ -1059,7 +1059,7 @@ class Thread:
or until the optional timeout occurs.
When the timeout argument is present and not None, it should be a
- floating point number specifying a timeout for the operation in seconds
+ floating-point number specifying a timeout for the operation in seconds
(or fractions thereof). As join() always returns None, you must call
is_alive() after join() to decide whether a timeout happened -- if the
thread is still alive, the join() call timed out.
diff --git a/Lib/tkinter/simpledialog.py b/Lib/tkinter/simpledialog.py
index 0f0dc66..6e5b025 100644
--- a/Lib/tkinter/simpledialog.py
+++ b/Lib/tkinter/simpledialog.py
@@ -357,7 +357,7 @@ def askinteger(title, prompt, **kw):
class _QueryFloat(_QueryDialog):
- errormessage = "Not a floating point value."
+ errormessage = "Not a floating-point value."
def getresult(self):
return self.getdouble(self.entry.get())