Skip to content

Commit 0f127b0

Browse files
authored
Add Python 3.15 math APIs using pymath (#9122)
* Add Python 3.15 math APIs using pymath Pin pymath to merged dd1e9a4cf26d68caf3b549c09476f52e356e16a3 and expose isnormal, issubnormal, signbit, fmax and fmin through thin wrappers. Share the existing integer functions through math.integer and _math_integer, matching CPython module identity and metadata. Migrate test_math.py and test_math_integer.py via scripts/update_lib from CPython d220409a13b77de7a6c30abe16ea90db01528edc, preserving the existing Windows remainder marker. Add bounded Python snippet coverage. AI assistance: OpenAI Codex implemented and source-reviewed this change, ran update_lib, and performed focused automated validation. No human manual testing is claimed. Assisted-by: OpenAI Codex:model version unavailable * Track integer math tests in library updates Assisted-by: OpenAI Codex:model version unavailable
1 parent 796f522 commit 0f127b0

9 files changed

Lines changed: 759 additions & 309 deletions

File tree

‎.cspell.dict/python-more.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ isabstractmethod
127127
isbytes
128128
iscased
129129
isfinal
130+
issubnormal
130131
istext
131132
itemiterator
132133
itemsize

‎Cargo.lock‎

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

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pem-rfc7468 = "1.0"
266266
pkcs8 = "0.11"
267267
proc-macro2 = "1.0.105"
268268
psm = "0.1"
269-
pymath = { version = "0.2.0", features = ["mul_add", "malachite-bigint", "complex"] }
269+
pymath = { git = "https://github.com/RustPython/pymath.git", rev = "dd1e9a4cf26d68caf3b549c09476f52e356e16a3", features = ["mul_add", "malachite-bigint", "complex"] }
270270
pyo3 = "0.29"
271271
quote = "1.0.45"
272272
radium = "1.1.1"

0 commit comments

Comments
 (0)