mpmath breaking changes
mpmath 1.4.1 (March 15, 2026) is its newest release with breaking changes, 3 of them. The first: Removed mpmath.__version__. Every breaking API change we have recorded in mpmath on PyPI: 374 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.4.1, released March 15, 2026. Source repository
Its 1.4.0 release drops Python 2. Python end of life dates.
- From 0.19 to 1.4.1: 358 breaking changes in 3 versions.
- From 0.18 to 1.4.1: 364 breaking changes in 4 versions.
mpmath 1.4.1 breaking changes
- Removed
mpmath.__version__
mpmath.__version__ was removed in mpmath 1.4.1 pypi.org - Signature changed
mpmath.libmp.mpc_log
Was def mpc_log(x, prec, rnd=round_fast); now mpc_log. pypi.org - Signature changed
mpmath.libmp.mpf_log
Was def mpf_log(x, prec, rnd=round_fast); now mpf_log. pypi.org
mpmath 1.4.0 breaking changes
- Removed
The release no longer supports Python 2, so code running on Python 2 must stay on mpmath 1.3.0 or move to Python 3. github.com - Removed
The sage backend has been removed and can no longer be used. github.com - Removed
Python versions older than 3.9 are no longer supported, so users on them must stay on the previous release or upgrade Python. github.com - Removed
MPMATH_STRICT
The MPMATH_STRICT environment variable is no longer read, so code relying on it loses that behavior. github.com - Removed
mpmath.calculus.extrapolation.cartesian_product
mpmath.calculus.extrapolation.cartesian_product was removed in mpmath 1.4.0 pypi.org - Removed
mpmath.calculus.extrapolation.next
mpmath.calculus.extrapolation.next was removed in mpmath 1.4.0 pypi.org - Removed
mpmath.calculus.quadrature.QuadratureRule.interval_count
QuadratureRule.interval_count was removed in mpmath 1.4.0 pypi.org - Removed
mpmath.calculus.quadrature.QuadratureRule.standard_cache
QuadratureRule.standard_cache was removed in mpmath 1.4.0 pypi.org - Removed
mpmath.ctx_base.SpecialFunctions.mpq_0
SpecialFunctions.mpq_0 was removed in mpmath 1.4.0 pypi.org - Removed
mpmath.ctx_base.SpecialFunctions.mpq_1
SpecialFunctions.mpq_1 was removed in mpmath 1.4.0 pypi.org
And 316 more in this version. Sign up to see every change
mpmath 1.0.0 breaking changes
- Signature changed
mpmath.calculus.optimization.findroot
Was def findroot(ctx, f, x0, solver=Secant, tol=None, verbose=False, verify=True, **kwargs); now def findroot(ctx, f, x0, solver='secant', tol=None, verbose=False, verify=True, **kwargs). pypi.org - Signature changed
mpmath.calculus.polynomials.polyroots
Was def polyroots(ctx, coeffs, maxsteps=50, cleanup=True, extraprec=10, error=False); now def polyroots(ctx, coeffs, maxsteps=50, cleanup=True, extraprec=10, error=False, roots_init=None). pypi.org - Signature changed
mpmath.ctx_base.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.ctx_fp.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.ctx_fp.to_float
Was def to_float(s, strict=False); now def to_float(s, strict=False, rnd=round_fast). pypi.org - Signature changed
mpmath.ctx_iv.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.ctx_mp_python.mpc_to_complex
Was def mpc_to_complex(z, strict=False); now def mpc_to_complex(z, strict=False, rnd=round_fast). pypi.org - Signature changed
mpmath.ctx_mp_python.to_float
Was def to_float(s, strict=False); now def to_float(s, strict=False, rnd=round_fast). pypi.org - Signature changed
mpmath.ctx_mp.mpc_to_complex
Was def mpc_to_complex(z, strict=False); now def mpc_to_complex(z, strict=False, rnd=round_fast). pypi.org - Signature changed
mpmath.ctx_mp.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org
And 19 more in this version. Sign up to see every change
mpmath 0.19 breaking changes
- Removed
mpmath.tests.test_bitwise.test_rounding_issue160
mpmath.tests.test_bitwise.test_rounding_issue160 was removed in mpmath 0.19 pypi.org - Removed
mpmath.tests.test_elliptic.test_issue198
mpmath.tests.test_elliptic.test_issue198 was removed in mpmath 0.19 pypi.org - Removed
mpmath.tests.test_elliptic.test_jtheta_issue39
mpmath.tests.test_elliptic.test_jtheta_issue39 was removed in mpmath 0.19 pypi.org - Removed
mpmath.tests.test_functions.test_issue_33
mpmath.tests.test_functions.test_issue_33 was removed in mpmath 0.19 pypi.org - Removed
mpmath.tests.test_functions.test_issue_96
mpmath.tests.test_functions.test_issue_96 was removed in mpmath 0.19 pypi.org - Removed
mpmath.tests.test_functions2.test_issue199
mpmath.tests.test_functions2.test_issue199 was removed in mpmath 0.19 pypi.org
mpmath 0.18 breaking changes
- Removed
mpmath.libmp.exec_py3
mpmath.libmp.exec_py3 was removed in mpmath 0.18 pypi.org - Signature changed
mpmath.ctx_base.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.ctx_fp.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.ctx_iv.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.ctx_mp_python.exec_
Was exec_; now def exec_(code, globs=None, locs=None). pypi.org - Signature changed
mpmath.ctx_mp.StandardBaseContext
Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... pypi.org - Signature changed
mpmath.doctests
Was def doctests(); now def doctests(filter=[]). pypi.org - Signature changed
mpmath.libmp.backend.exec_
Was exec_; now def exec_(code, globs=None, locs=None). pypi.org - Signature changed
mpmath.libmp.libhyper.exec_
Was exec_; now def exec_(code, globs=None, locs=None). pypi.org - Signature changed
mpmath.tests.torture.exec_
Was exec_; now def exec_(code, globs=None, locs=None). pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.