Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

mojo-pyformat v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:36
· 12 commits to main since this release

mojo-pyformat-public v0.1.2

Released: 2026-11-04 · Commit: d3e641f · Previous: v0.1.1

What it does

Python's format() for numbers in Mojo, with the same digits: {:.Nf}, thousands separators, g, e, and %, rounded on the double's exact binary value as CPython does.

Highlights

  • py_sum keeps infinities like CPython; a width or precision that overflows raises instead of misformatting.
  • README has one install block and one example; a conda recipe ships the package.

Changes

Added

  • recipe.yaml: a conda package recipe.
  • CI, latest-release and license badges in the README.

Changed

  • README: one install and quickstart block, one example.

Fixed

  • py_sum keeps inf like CPython.
  • A width or precision that overflows raises an error.

Verified

Check Result
ci-local at d3e641f: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 PASS

Known limits

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • d3e641f fix(release): pyproject.toml, recipe.yaml, uv.lock say 0.1.2
  • 71c7742 build: conda recipe
  • ab83ec8 docs: one example, one install block
  • a6cf040 docs: install and quickstart block
  • 0c9b45d fix(format): py_sum keeps inf like CPython; width/precision overflow raises
  • cce527c fix(release): pyproject and uv.lock say 0.1.1, the version of the latest tag
  • 0e22c27 docs: CI, latest-release and license badges