What's New in v0.10.4
Fixed
- Optional return types from methods raised
RuntimeErrorinstead of returningNone- When a Zig method returned?T(optional) and the value wasnull, PyOZ raisedRuntimeError: method returned nullinstead of returning PythonNone. This affected instance methods, static methods, class methods,__call__,__get__,__iter__,__repr__/__str__, and number protocol operations. The method dispatch now correctly returnsNonefor 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