Skip to content

docs: point PyPI at the Python docs, and say what len(q) counts - #108

Merged
cursor[bot] merged 2 commits into
mainfrom
akshey/pypi-links-len-fefb
Sep 28, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
akshey/pypi-links-len-fefb

Conversation

@aksheyd

@aksheyd aksheyd commented Sep 28, 2026

Copy link
Copy Markdown
Owner

PyPI links. The project's Documentation link went to docs.rs, which documents the Rust API, and Homepage went to the PyPI page itself. They now go to the python folder on GitHub, whose README is the Python docs, and to the repository. The built wheel's metadata lists all three.

len(q). For a 256×512 layer, len(q) is 131,072, the number of values, as Rust's len() is. NumPy would say 256, and nothing said which it was: help(Quantized.__len__) only prints Python's "Return len(self)." The behavior stays, since changing it after 0.3.0 would break code:

  • the Quantized docstring says len(q) is the number of values, rows * columns for a matrix, as in Rust, and that shape gives the rows and columns
  • the README says so where it introduces 2-D arrays

PyPI keeps each release's links and README as uploaded, so this is worth having in 0.3.0. Merges cleanly with #101, #103, #106, and #107. just lint, just test, and just python pass.

Open in Web Open in Cursor 

PyPI's Documentation link went to docs.rs, which documents the Rust API, and Homepage to the PyPI page itself. They now go to the python folder on GitHub, whose README is the Python docs, and to the repository. len(q) of a 256 x 512 tensor is 131,072, the number of values as in Rust, where NumPy would say 256, and nothing said so. The Quantized docstring and the README now do, and say that q.shape gives the rows and columns.
@aksheyd
aksheyd marked this pull request as ready for review September 28, 2026 04:51
@cursor
cursor Bot merged commit ab983ca into main Sep 28, 2026
10 checks passed
@cursor
cursor Bot deleted the akshey/pypi-links-len-fefb branch September 28, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant