---
title: "mpmath 1.4.1 Breaking Changes on PyPI | Since.dev"
description: "What each mpmath release removed, renamed or changed: 374 breaking changes in 5 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/mpmath
last_updated: 2026-12-04
---

# 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

Latest version `1.4.1`, released March 15, 2026. [Source repository](https://github.com/mpmath/mpmath)

Its 1.4.0 release drops Python 2. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.19](#v-0-19) to [1.4.1](#v-1-4-1): 358 breaking changes in 3 versions.
- From [0.18](#v-0-18) to [1.4.1](#v-1-4-1): 364 breaking changes in 4 versions.

## mpmath 1.4.1 breaking changes

mpmath 1.4.1, released March 15, 2026: 3 breaking changes.

- **Removed** `mpmath.__version__`  

mpmath.\_\_version\_\_ was removed in mpmath 1.4.1 [pypi.org](https://pypi.org/project/mpmath/1.4.1/)
- **Signature changed** `mpmath.libmp.mpc_log`  

Was def mpc_log(x, prec, rnd=round_fast); now mpc_log. [pypi.org](https://pypi.org/project/mpmath/1.4.1/)
- **Signature changed** `mpmath.libmp.mpf_log`  

Was def mpf_log(x, prec, rnd=round_fast); now mpf_log. [pypi.org](https://pypi.org/project/mpmath/1.4.1/)

## mpmath 1.4.0 breaking changes

mpmath 1.4.0, released February 23, 2026: 326 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](https://github.com/mpmath/mpmath/releases/tag/1.4.0)
- **Removed**  

The sage backend has been removed and can no longer be used. [github.com](https://github.com/mpmath/mpmath/releases/tag/1.4.0)
- **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](https://github.com/mpmath/mpmath/releases/tag/1.4.0)
- **Removed** `MPMATH_STRICT`  

The MPMATH_STRICT environment variable is no longer read, so code relying on it loses that behavior. [github.com](https://github.com/mpmath/mpmath/releases/tag/1.4.0)
- **Removed** `mpmath.calculus.extrapolation.cartesian_product`  

mpmath.calculus.extrapolation.cartesian_product was removed in mpmath 1.4.0 [pypi.org](https://pypi.org/project/mpmath/1.4.0/)
- **Removed** `mpmath.calculus.extrapolation.next`  

mpmath.calculus.extrapolation.next was removed in mpmath 1.4.0 [pypi.org](https://pypi.org/project/mpmath/1.4.0/)
- **Removed** `mpmath.calculus.quadrature.QuadratureRule.interval_count`  

QuadratureRule.interval_count was removed in mpmath 1.4.0 [pypi.org](https://pypi.org/project/mpmath/1.4.0/)
- **Removed** `mpmath.calculus.quadrature.QuadratureRule.standard_cache`  

QuadratureRule.standard_cache was removed in mpmath 1.4.0 [pypi.org](https://pypi.org/project/mpmath/1.4.0/)
- **Removed** `mpmath.ctx_base.SpecialFunctions.mpq_0`  

SpecialFunctions.mpq_0 was removed in mpmath 1.4.0 [pypi.org](https://pypi.org/project/mpmath/1.4.0/)
- **Removed** `mpmath.ctx_base.SpecialFunctions.mpq_1`  

SpecialFunctions.mpq_1 was removed in mpmath 1.4.0 [pypi.org](https://pypi.org/project/mpmath/1.4.0/)

And 316 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mpmath 1.0.0 breaking changes

mpmath 1.0.0, released October 2, 2017: 29 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](https://pypi.org/project/mpmath/1.0.0/)
- **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](https://pypi.org/project/mpmath/1.0.0/)
- **Signature changed** `mpmath.ctx_base.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/1.0.0/)
- **Signature changed** `mpmath.ctx_fp.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/1.0.0/)
- **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](https://pypi.org/project/mpmath/1.0.0/)
- **Signature changed** `mpmath.ctx_iv.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/1.0.0/)
- **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](https://pypi.org/project/mpmath/1.0.0/)
- **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](https://pypi.org/project/mpmath/1.0.0/)
- **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](https://pypi.org/project/mpmath/1.0.0/)
- **Signature changed** `mpmath.ctx_mp.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, Eigen, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/1.0.0/)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mpmath 0.19 breaking changes

mpmath 0.19, released June 11, 2014: 6 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](https://pypi.org/project/mpmath/0.19/)
- **Removed** `mpmath.tests.test_elliptic.test_issue198`  

mpmath.tests.test_elliptic.test_issue198 was removed in mpmath 0.19 [pypi.org](https://pypi.org/project/mpmath/0.19/)
- **Removed** `mpmath.tests.test_elliptic.test_jtheta_issue39`  

mpmath.tests.test_elliptic.test_jtheta_issue39 was removed in mpmath 0.19 [pypi.org](https://pypi.org/project/mpmath/0.19/)
- **Removed** `mpmath.tests.test_functions.test_issue_33`  

mpmath.tests.test_functions.test_issue_33 was removed in mpmath 0.19 [pypi.org](https://pypi.org/project/mpmath/0.19/)
- **Removed** `mpmath.tests.test_functions.test_issue_96`  

mpmath.tests.test_functions.test_issue_96 was removed in mpmath 0.19 [pypi.org](https://pypi.org/project/mpmath/0.19/)
- **Removed** `mpmath.tests.test_functions2.test_issue199`  

mpmath.tests.test_functions2.test_issue199 was removed in mpmath 0.19 [pypi.org](https://pypi.org/project/mpmath/0.19/)

## mpmath 0.18 breaking changes

mpmath 0.18, released January 6, 2014: 10 breaking changes.

- **Removed** `mpmath.libmp.exec_py3`  

mpmath.libmp.exec_py3 was removed in mpmath 0.18 [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.ctx_base.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.ctx_fp.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.ctx_iv.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.ctx_mp_python.exec_`  

Was exec\_; now def exec\_(code, globs=None, locs=None). [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.ctx_mp.StandardBaseContext`  

Was class StandardBaseContext(Context, SpecialFunctions, RSCache, QuadratureMethods, CalculusMethods, MatrixMethods, MatrixCalculusMethods, LinearAlgebraMethods, IdentificationMethods, OptimizationMethods, ODEMethods... [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.doctests`  

Was def doctests(); now def doctests(filter=\[\]). [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.libmp.backend.exec_`  

Was exec\_; now def exec\_(code, globs=None, locs=None). [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.libmp.libhyper.exec_`  

Was exec\_; now def exec\_(code, globs=None, locs=None). [pypi.org](https://pypi.org/project/mpmath/0.18/)
- **Signature changed** `mpmath.tests.torture.exec_`  

Was exec\_; now def exec\_(code, globs=None, locs=None). [pypi.org](https://pypi.org/project/mpmath/0.18/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
