mpmath 1.5.0a2
- Source
- https://github.com/mpmath/mpmath
- Artifact scanned
mpmath-1.5.0a2-py3-none-any.whl- Compared with
mpmath-1.5.0a1-py3-none-any.whl(0 signals introduced since)- Files
- 98 scanned, 5 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 13 info
- Scan time
- 9.5 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 12 of 12 warn and critical signals; 12 demoted to info.
- Disclude version
- 4.3.0
- Scanned (UTC)
- 2026-10-30 09:13
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= = =likely benign eval of constant-name expressions inside mpmath's identification routine.Reasoning
The eval runs over constant expression strings (such as 'pi' or 'log(2)') evaluated in a namespace built from the mpmath context. That is the expected behaviour of a constant-identification routine in a math library. The input is internal, not attacker-controlled, and the snippet shows nothing like network or process activity.
-
#print sourcelikely benign exec of generated Python source in mpmath's hypergeometric helper.Reasoning
exec runs generated source for hypergeometric helper code in a controlled namespace. Code generation via exec is a common, legitimate technique in numerical libraries. The snippet does not show where the source string comes from, which keeps confidence below the highest level, but nothing indicates untrusted input.
-
assert != assert ==likely benign Test checking that repr of an mpf evaluates back to the same value.Reasoning
The test round-trips an mpf through repr and eval to check that its representation is reversible. This is a standard test pattern on a value the test itself creates.
-
= assert == , =likely benign Randomized test that evals repr of generated mpf values.Reasoning
This is a randomized round-trip test that evals repr(x) for values the test generates. It is ordinary test code.
-
/= 10** assert == ,likely benign Randomized repr round-trip assertion in the test suite.Reasoning
Same randomized repr/eval round-trip as the neighbouring test, on test-generated values.
-
= **0.5 * 10** assert ==likely benign Test asserting repr/eval round-trip of random mpf values.Reasoning
The test evals repr of a randomly generated mpf to confirm conversion round-trips. It is a benign test assertion.
-
= 1010 = = 1050likely benign Test evaluating a z expression string from a static gamma test table.Reasoning
The test evals a z string taken from a hard-coded table of test cases for gamma-function checks. The inputs are static test data, not external input.
-
= = = *likely benign Test evaluating expected loggamma strings from static test data.Reasoning
This evals a loggamma result string from the same static test table to compare values at high precision. It is benign test code.
-
% , % ]:likely benign Test evaluating constructed linear-algebra call strings to check exceptions.Reasoning
The test evals strings of the form 'qr_solve(A, b)' that it builds itself to check that singular inputs raise the expected exceptions. This is benign test code.
-
assert == assert == = assert ==likely benign Test asserting that a matrix repr evaluates back to an equal matrix.Reasoning
The matrix test evals repr of a matrix it built to check round-tripping. It is a standard test assertion.
-
= assert == assert *1j == assert * 10 == 10 * ==likely benign Test asserting matrix repr round-trip, including a complex-scaled matrix.Reasoning
Same matrix repr/eval round-trip assertion, applied to a complex-scaled matrix built in the test.
-
assert == assert *1j == assert * 10 == 10 * == assert == 3likely benign Matrix repr round-trip assertion in the test suite.Reasoning
Another repr round-trip assertion in the matrix test suite, on test-built values.
Reproduce This Scan
Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
|