Skip to main content

A Range is used to represent integer ranges, such a file offset spans.

Much of the set API is presented to modify and test Ranges, looking somewhat like sets of intergers but extended slightly to accept ranges as well as individual integers so that one may say “R.add(start, end)” and so forth.

Also provided:

  • Span, a simple start:end range.

  • overlap: return the overlap of two Spans

  • spans: return an iterable of Spans for all contiguous sequences in the ordered integers supplied

Release files for cs.range 20150116

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs.range 20150116
File Size Uploaded
cs.range-20150116.tar.gz 5.2 kB Details

Release files / cs.range-20150116.tar.gz

Download URL cs.range-20150116.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5dbcb3b587a6f793ee59c1bbe35b0331e67e62d6991c4e0d9838773330ba63d9
BLAKE2b-256 checksum
How to use checksums
e0a5081332ed0f9839ecba92ff0935409f4b6a2586d077a013af1acaf2f7a8df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

20150116 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page