pypi / pydantic-monty
pydantic-monty
What changed in pydantic-monty 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
6 breaking1 security35 new APIs and options2 performance7 behavior and defaults1 tooling20 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpydantic-monty 172 changes
Breaking changes 6
re.split() results now include capture groups.
Rejects a script path that collides with the type stubs file.
Dumps switch from postcard to CBOR.
AutoOsCallsis renamed toOsPolicy.Session
max_durationis replaced with feed and turn limits.Wire types are restricted to a whitelist; other values use a proxy.
Security 1
Resource limit checks were added for binascii and base64 operations.
New APIs and options 35
The bisect module is now available.
The csv module is implemented and available to Monty programs.
Dataclasses support field(), default_factory, and __post_init__.
The hashlib module is implemented and available to Monty programs.
Host calls can now be imported.
json.dump is available.
json.load is available.
Match statements are now supported.
The os.path module is implemented and available to Monty programs.
Path.scan is available as an os call.
The tomllib module is implemented and available to Monty programs.
Adds the complex type.
asyncio.sleep()is added.Sessions gain auto-resume.
Automatic OS calls are added.
Percent formatting is supported for string and bytes format strings.
The copy module is added.
Current working directory support is added.
Ephemeral sessions are supported.
eval()is implemented.exec()is implemented.The
format()builtin is implemented.locals()is implemented.Remaining math aggregation functions are implemented.
fmais implemented in the math module.An
os.urandomhost call is added.The random module is added, along with an
os.urandomhost call.Runtime definitions such as
tuple[int, str]anddict | dictare supported.Sessions can be forked.
Sessions gain IDs, forking, ephemeral sessions, and auto-resume.
The sys constants with known values are implemented.
The time module is extended.
time.sleep()is added.time.time()is added.Timezone support is added.
Performance 2
F-string concatenation now optimizes buffer preallocation and refcount churn.
Sequence unpacking was optimized to use direct unpacking.
Behavior and default changes 7
File objects are now iterable.
The binary module is now loaded eagerly at package import.
Sets and frozensets now support ordering comparisons.
Many more dunder methods are now supported on user instances.
Await handling becomes eager.
Monty drops its experimental framing ahead of v1.
The source position of every suspension is reported.
Tooling 1
Wheels are built for Python 3.14t.
Fixes and other changes 20
Float format precision is capped at INT_MAX - 1024, matching CPython 3.14.8.
JavaScript print callbacks no longer swallow thrown null.
List slice assignment is now supported.
open() now honours its newline argument.
Restored session budgets are capped at the destination limits.
Treats bool values as int values in arithmetic expressions.
Scans raise, assert, and except expressions for closure captures.
Fixes octal escapes in the re module.
The module gains uu, quoted-printable, and CRC-16 conversions.
casefoldand other case methods gain improved compatibility.date.today()is answered during standard execution.datetime.now()is answered during standard execution.Exception classes are resolved directly and modeled inbound.
Integer/float arithmetic on long integers and float power overflow match CPython.
The math module accepts long integers.
Container growth is checked against the memory limit before allocation.
pow()accepts long integers.print(file=sys.stderr)is supported.round()accepts long integers.Unpacking supports attribute and subscript targets.