Skip to content

Commit 5bdee0c

Browse files
intmath -> math.integer
1 parent b6a6164 commit 5bdee0c

File tree

19 files changed

+136
-127
lines changed

19 files changed

+136
-127
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
:mod:`intmath` --- integer-specific mathematics functions
2-
=========================================================
1+
:mod:`math.integer` --- integer-specific mathematics functions
2+
==============================================================
33

4-
.. module:: intmath
4+
.. module:: math.integer
55
:synopsis: Integer-specific mathematics functions.
66

77
.. versionadded:: next

Doc/library/math.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,26 @@ Number-theoretic functions
130130
--------------------------
131131

132132
These functions are aliases of corresponding functions in the
133-
:mod:`intmath` module.
133+
:mod:`math.integer` module.
134134

135135
.. function:: comb(n, k)
136136

137-
An alias of :func:`intmath.comb`.
137+
An alias of :func:`math.integer.comb`.
138138

139139
.. versionadded:: 3.8
140140

141141

142142
.. function:: factorial(n)
143143

144-
An alias of :func:`intmath.factorial`.
144+
An alias of :func:`math.integer.factorial`.
145145

146146
.. versionchanged:: 3.10
147147
Floats with integral values (like ``5.0``) are no longer accepted.
148148

149149

150150
.. function:: gcd(*integers)
151151

152-
An alias of :func:`intmath.gcd`.
152+
An alias of :func:`math.integer.gcd`.
153153

154154
.. versionadded:: 3.5
155155

@@ -160,21 +160,21 @@ These functions are aliases of corresponding functions in the
160160

161161
.. function:: isqrt(n)
162162

163-
An alias of :func:`intmath.isqrt`.
163+
An alias of :func:`math.integer.isqrt`.
164164

165165
.. versionadded:: 3.8
166166

167167

168168
.. function:: lcm(*integers)
169169

170-
An alias of :func:`intmath.lcm`.
170+
An alias of :func:`math.integer.lcm`.
171171

172172
.. versionadded:: 3.9
173173

174174

175175
.. function:: perm(n, k=None)
176176

177-
An alias of :func:`intmath.perm`.
177+
An alias of :func:`math.integer.perm`.
178178

179179
.. versionadded:: 3.8
180180

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-
intmath.rst
22+
math.integer.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
@@ -311,8 +311,8 @@ Other language changes
311311
New modules
312312
===========
313313

314-
intmath
315-
-------
314+
math.integer
315+
------------
316316

317317
This module provides access to the mathematical functions for integer
318318
arguments (:pep:`791`).

Include/internal/pycore_import.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ extern int _PyImport_IsInitialized(PyInterpreterState *);
1717
// Export for 'pyexpat' shared extension
1818
PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
1919

20-
extern int _PyImport_SetModuleString(const char *name, PyObject* module);
20+
// Export for 'math' shared extension
21+
PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
2122

2223
extern void _PyImport_AcquireLock(PyInterpreterState *interp);
2324
extern void _PyImport_ReleaseLock(PyInterpreterState *interp);
Lines changed: 2 additions & 2 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 intmath.factorial algorithm, for
18+
# Here's a pure Python version of the math.integer.factorial algorithm, for
1919
# documentation and comparison purposes.
2020
#
2121
# Formula:
@@ -67,7 +67,7 @@ def py_factorial(n):
6767

6868

6969
class IntMathTests(unittest.TestCase):
70-
import intmath as module
70+
import math.integer as module
7171

7272
def assertIntEqual(self, actual, expected):
7373
self.assertEqual(actual, expected)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add the :mod:`intmath` module.
1+
Add the :mod:`math.integer` 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-
#intmath intmathmodule.c
159+
#_math_integer mathintegermodule.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,12 +32,12 @@
3232
############################################################################
3333
# Modules that should always be present (POSIX and Windows):
3434
@MODULE_ARRAY_TRUE@array arraymodule.c
35-
@MODULE_INTMATH_TRUE@intmath intmathmodule.c
3635
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
3736
@MODULE__CSV_TRUE@_csv _csv.c
3837
@MODULE__HEAPQ_TRUE@_heapq _heapqmodule.c
3938
@MODULE__JSON_TRUE@_json _json.c
4039
@MODULE__LSPROF_TRUE@_lsprof _lsprof.c rotatingtree.c
40+
@MODULE__MATH_INTEGER_TRUE@_math_integer mathintegermodule.c
4141
@MODULE__PICKLE_TRUE@_pickle _pickle.c
4242
@MODULE__QUEUE_TRUE@_queue _queuemodule.c
4343
@MODULE__RANDOM_TRUE@_random _randommodule.c
Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)