What to do with re.LOCALE?

The question isn’t about dropping the idea, or whether to extend the deprecation period, but whether to reduce it to the minimum.

PEP 387 was updated last year to recommend a five-year deprecation period. The discussion had lots of support (and SC approval) for five years as the recommendation.

So the default is five years, and the minimum two years is the exception.

If you think the maintenance cost of keeping the old code for longer is too high, and the upgrade cost to the community is low enough, then less than five is okay.

At least use in the top PyPI packages is low, and even lower in compiled regexes.

1 Like