Skip to content

docs: clarify range direction and default steps - #378

Merged
dgilland merged 3 commits into
dgilland:developfrom
Luxe7:docs/range-direction
Oct 27, 2026
Merged

dgilland merged 3 commits into
dgilland:developfrom
Luxe7:docs/range-direction

Conversation

@Luxe7

@Luxe7 Luxe7 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

The range docs had the direction backwards: range_(4, 1) counts down by default, and range_right(4, 1) reverses that into an ascending sequence.

This updates the descriptions and adds executable examples for negative bounds and an explicit step in the wrong direction. Runtime behavior stays the same.

Checked on Python 3.14: 2880 tests and doctests passed, Ruff passed for the changed module, and the Sphinx build passed with warnings treated as errors. Other Python versions were not run locally.

Luxe7 added 2 commits October 26, 2026 12:38
Updated docstring for range_ and range_right functions to clarify behavior regarding step parameter and output
Add the contributor entry requested by CONTRIBUTING.rst.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — Luxe7:docs/range-direction into dgilland:develop

@dgilland
dgilland merged commit ebcc372 into dgilland:develop Oct 27, 2026
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.

3 participants