Skip to content

MAINT: f2py: Stop setting re._MAXCACHE to 50.#31105

Merged
mattip merged 1 commit into
numpy:mainfrom
WarrenWeckesser:f2py-re-maxcache
Mar 30, 2026
Merged

MAINT: f2py: Stop setting re._MAXCACHE to 50.#31105
mattip merged 1 commit into
numpy:mainfrom
WarrenWeckesser:f2py-re-maxcache

Conversation

@WarrenWeckesser

Copy link
Copy Markdown
Member

The value has been set to 50 for more than 20 years. Computers generally have much more memory now than they did 20 years ago, so we should be able to let re use the default.

Closes gh-31104.

AI Disclosure

No AI tools used.

The value has been set to 50 for more than 20 years.  Computers
generally have much more memory now than they did 20 years ago,
so we should be able to let `re` use the default.

Closes numpygh-31104.
@tylerjereddy

Copy link
Copy Markdown
Contributor

That seems obviously correct at this point indeed.

@mattip mattip merged commit 7ab949e into numpy:main Mar 30, 2026
83 of 85 checks passed
@mattip

mattip commented Mar 30, 2026

Copy link
Copy Markdown
Member

Thanks @WarrenWeckesser.

The docs build CI could not find the scipy intersphinx reference. Hopefully that is a once-off failure.

@WarrenWeckesser WarrenWeckesser deleted the f2py-re-maxcache branch March 30, 2026 18:32
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Mar 30, 2026
@charris

charris commented Mar 30, 2026

Copy link
Copy Markdown
Member

I tagged this for backport, seems pretty safe.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: f2py.crackfortran mutates global re._MAXCACHE at import time

4 participants