Skip to content

Explain keyed range bounds and safe iteration during removal - #267

Open
Aschenbath wants to merge 1 commit into
grantjenks:masterfrom
Aschenbath:codex/oss20c-20261122-sortedcontainers-ranges
Open

Aschenbath wants to merge 1 commit into
grantjenks:masterfrom
Aschenbath:codex/oss20c-20261122-sortedcontainers-ranges

Conversation

@Aschenbath

Copy link
Copy Markdown

Explain why a descending SortedDict needs bounds in key-function order, how reverse affects iteration, and how irange_key accepts comparison keys. Add safe snapshot-based removal examples for SortedSet, including range removal, and explain the key function's stability requirement.

Fixes #235 and fixes #238 by documenting the existing API contracts and working usage patterns.

Validation: all 169 introduction doctests pass. Sphinx HTML builds with warnings treated as errors, using MathJax instead of the local LaTeX image renderer. Python 3.12.

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.

Discard behavior when iterating over SortedSet irange() when used with neg

1 participant