github pyozig/PyOZ v0.10.4
PyOZ v0.10.4

latest releases: v0.12.2, v0.12.1, v0.12.0...
6 months ago

What's New in v0.10.4

Fixed

  • Optional return types from methods raised RuntimeError instead of returning None - When a Zig method returned ?T (optional) and the value was null, PyOZ raised RuntimeError: method returned null instead of returning Python None. This affected instance methods, static methods, class methods, __call__, __get__, __iter__, __repr__/__str__, and number protocol operations. The method dispatch now correctly returns None for null optionals (matching the behavior of standalone functions and the conversion system). Improved error messages for __len__ and __new__ optional null returns, which are legitimately errors since Python requires concrete values from those slots.

Installation

Download the binary for your platform and add it to your PATH:

Platform Binary
Linux x86_64 pyoz-x86_64-linux
Linux ARM64 pyoz-aarch64-linux
macOS x86_64 pyoz-x86_64-macos
macOS ARM64 (Apple Silicon) pyoz-aarch64-macos
Windows x86_64 pyoz-x86_64-windows.exe
Windows ARM64 pyoz-aarch64-windows.exe

Source

Download PyOZ-0.10.4.tar.gz for the source code.

Quick Start

pyoz init mymodule
cd mymodule
pyoz build
pip install dist/*.whl

Don't miss a new PyOZ release

NewReleases is sending notifications on new releases.