v0.0.12

pydantic/montyv0.0.12Apr 14, 2026by samuelcolvin

AI Summary

This release adds strict mode to the zip() function, implements Drop instead of cleanup for VM, and includes performance improvements for type checking.

Key Highlights

  • Implemented strict mode for zip() function to enforce equal lengths
  • Replaced `vm.cleanup()` with `Drop` implementation
  • Added JSON load/dump to benchmarks
  • Improved type checking performance
  • Added `CollectString` and `CollectStreams` for `print_output`

New Features

  • Strict mode for zip() function

Full Release Notes

## What's Changed
* Repl type checking by @samuelcolvin in https://github.com/pydantic/monty/pull/319
* Add JSON load/dump to benchmarks by @samuelcolvin in https://github.com/pydantic/monty/pull/320
* Implement strict mode for zip() function to enforce equal lengths of iterables by @davidhewitt in https://github.com/pydantic/monty/pull/324
* move datatests & benches to separate crates by @davidhewitt in https://github.com/pydantic/monty/pull/325
* replace `vm.cleanup()` with `Drop` implementation by @davidhewitt in https://github.com/pydantic/monty/pull/326
* Improve type checking performance by @samuelcolvin in https://github.com/pydantic/monty/pull/321
* Add `CollectString` and `CollectStreams` for `print_output` by @samuelcolvin in https://github.com/pydantic/monty/pull/322
* add Rust coverage for python tests by @samuelcolvin in https://github.com/pydantic/monty/pull/328


**Full Changelog**: https://github.com/pydantic/monty/compare/v0.0.11...v0.0.12