---
title: "rstr 4.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each rstr release removed, renamed or changed: 15 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/rstr
last_updated: 2026-12-04
---

# rstr breaking changes

rstr 4.0.0 (November 19, 2026) is its newest release with breaking changes, 15 of them. The first: rstr 4.0.0 drops support for Python 3.7, 3.8, 3.9 and 3.10. Every breaking API change we have recorded in rstr on PyPI: 15 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 19, 2026. [Source repository](https://github.com/leapfrogonline/rstr)

Its 4.0.0 release drops Python 3.7, 3.8, 3.9 and [3.10](https://since.dev/calendar/python/3.10.md). [Python end of life dates](https://since.dev/calendar/python.md).

## rstr 4.0.0 breaking changes

rstr 4.0.0, released November 19, 2026: 15 breaking changes.

- **Removed**  

Python 3.7, 3.8, 3.9 and 3.10 are no longer supported, so users on those versions must upgrade Python to use this release. [github.com](https://github.com/leapfrogonline/rstr/blob/4.0.0/RELEASE%5FNOTES)
- **Removed** `rstr.rstr_base`  

rstr.rstr_base was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Removed** `rstr.Xeger.__getattr__`  

Xeger.\_\_getattr\_\_ was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Removed** `rstr.Xeger.add_alphabet`  

Xeger.add_alphabet was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Removed** `rstr.Xeger.rstr`  

Xeger.rstr was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Removed** `rstr.xeger.RstrBase`  

rstr.xeger.RstrBase was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Removed** `rstr.Xeger.sample_wr`  

Xeger.sample_wr was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Removed** `rstr.xeger.STAR_PLUS_LIMIT`  

rstr.xeger.STAR_PLUS_LIMIT was removed in rstr 4.0.0 [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Behavior changed** `star_plus_limit`  

Explicit repeats such as a{1000} are no longer capped by star_plus_limit, so patterns relying on that limit behave differently. [github.com](https://github.com/leapfrogonline/rstr/blob/4.0.0/RELEASE%5FNOTES)
- **Behavior changed** `Xeger`  

Xeger and Rstr are now separate classes, so code that relies on Xeger being a XegerBase subclass may break. [github.com](https://github.com/leapfrogonline/rstr/blob/4.0.0/RELEASE%5FNOTES)
- **Default changed**  

The default random source is now SystemRandom, a cryptographically secure generator, so generated output differs from earlier versions. [github.com](https://github.com/leapfrogonline/rstr/blob/4.0.0/RELEASE%5FNOTES)
- **Signature changed** `rstr.rstr`  

Was rstr; now module rstr.rstr. [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Signature changed** `rstr.Rstr`  

Was Rstr; now class Rstr. [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Signature changed** `rstr.Xeger`  

Was class Xeger(RstrBase); now class Xeger. [pypi.org](https://pypi.org/project/rstr/4.0.0/)
- **Signature changed** `rstr.Xeger.__init__`  

Was def \_\_init\_\_(self, \_random: Random = typing.cast('Random', random), \*\*custom_alphabets: str) -> None; now def \_\_init\_\_(self, random: Random = SYSTEM_RANDOM, \*, star_plus_limit: int = 100) -> None. [pypi.org](https://pypi.org/project/rstr/4.0.0/)

## 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.
