Skip to content

Commit 3299bf7

Browse files
imath -> intmath
1 parent 2ab90a5 commit 3299bf7

File tree

17 files changed

+137
-137
lines changed

17 files changed

+137
-137
lines changed

Doc/library/imath.rst renamed to Doc/library/intmath.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
:mod:`imath` --- Mathematical functions for integer numbers
2-
===========================================================
1+
:mod:`intmath` --- Mathematical functions for integer numbers
2+
=============================================================
33

4-
.. module:: imath
4+
.. module:: intmath
55
:synopsis: Mathematical functions for integer numbers.
66

77
.. versionadded:: next

Doc/library/math.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,26 +125,26 @@ Number-theoretic functions
125125
--------------------------
126126

127127
These functions are aliases of corresponding functions in the
128-
:mod:`imath` module.
128+
:mod:`intmath` module.
129129

130130
.. function:: comb(n, k)
131131

132-
An alias of :func:`imath.comb`.
132+
An alias of :func:`intmath.comb`.
133133

134134
.. versionadded:: 3.8
135135

136136

137137
.. function:: factorial(n)
138138

139-
An alias of :func:`imath.factorial`.
139+
An alias of :func:`intmath.factorial`.
140140

141141
.. versionchanged:: 3.10
142142
Floats with integral values (like ``5.0``) are no longer accepted.
143143

144144

145145
.. function:: gcd(*integers)
146146

147-
An alias of :func:`imath.gcd`.
147+
An alias of :func:`intmath.gcd`.
148148

149149
.. versionadded:: 3.5
150150

@@ -155,21 +155,21 @@ These functions are aliases of corresponding functions in the
155155

156156
.. function:: isqrt(n)
157157

158-
An alias of :func:`imath.isqrt`.
158+
An alias of :func:`intmath.isqrt`.
159159

160160
.. versionadded:: 3.8
161161

162162

163163
.. function:: lcm(*integers)
164164

165-
An alias of :func:`imath.lcm`.
165+
An alias of :func:`intmath.lcm`.
166166

167167
.. versionadded:: 3.9
168168

169169

170170
.. function:: perm(n, k=None)
171171

172-
An alias of :func:`imath.perm`.
172+
An alias of :func:`intmath.perm`.
173173

174174
.. versionadded:: 3.8
175175

Doc/library/numeric.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following modules are documented in this chapter:
1919

2020
numbers.rst
2121
math.rst
22-
imath.rst
22+
intmath.rst
2323
cmath.rst
2424
decimal.rst
2525
fractions.rst

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Other language changes
8383
New modules
8484
===========
8585

86-
imath
87-
-----
86+
intmath
87+
-------
8888

8989
This module provides access to the mathematical functions for integer arguments.
9090
(Contributed by Serhiy Storchaka in :gh:`81313`.)

Lib/test/test_imath.py renamed to Lib/test/test_intmath.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, value):
1515
def __index__(self):
1616
return self.value
1717

18-
# Here's a pure Python version of the imath.factorial algorithm, for
18+
# Here's a pure Python version of the intmath.factorial algorithm, for
1919
# documentation and comparison purposes.
2020
#
2121
# Formula:
@@ -66,8 +66,8 @@ def py_factorial(n):
6666
return outer << (n - count_set_bits(n))
6767

6868

69-
class IMathTests(unittest.TestCase):
70-
import imath as module
69+
class IntMathTests(unittest.TestCase):
70+
import intmath as module
7171

7272
def assertIntEqual(self, actual, expected):
7373
self.assertEqual(actual, expected)
@@ -403,7 +403,7 @@ def test_comb(self):
403403
self.assertIs(type(comb(MyIndexable(5), MyIndexable(k))), int)
404404

405405

406-
class MathTests(IMathTests):
406+
class MathTests(IntMathTests):
407407
import math as module
408408
test_ilog2 = None
409409

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add the :mod:`imath` module.
1+
Add the :mod:`intmath` module.

Modules/Setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ PYTHONPATH=$(COREPYTHONPATH)
156156
#binascii binascii.c
157157
#cmath cmathmodule.c
158158
#math mathmodule.c
159-
#imath imathmodule.c
159+
#intmath intmathmodule.c
160160
#mmap mmapmodule.c
161161
#select selectmodule.c
162162
#_sysconfig _sysconfig.c

Modules/Setup.stdlib.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
############################################################################
3333
# Modules that should always be present (POSIX and Windows):
3434
@MODULE_ARRAY_TRUE@array arraymodule.c
35-
@MODULE_IMATH_TRUE@imath imathmodule.c
35+
@MODULE_INTMATH_TRUE@intmath intmathmodule.c
3636
@MODULE__ASYNCIO_TRUE@_asyncio _asynciomodule.c
3737
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
3838
@MODULE__CSV_TRUE@_csv _csv.c

Modules/clinic/imathmodule.c.h renamed to Modules/clinic/intmathmodule.c.h

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)