Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

range-anytype

Usage

This package is using for Range object for any type.

How to use it

import it by: from range_anytype import Range, ProtectedRange. No any additional modules or packages will be installed. If you cannot install it by pip, please download the source and extract it into sys.path.

To see examples, please visit example.py, or type from range_anytype import example.

Range

Create a range for any type that supports addition calculation.

ProtectedRange

Create a range for any type that supports addition and subtraction calculation. This can protect program because it detects the supporting of subtraction of the type. Some types like str, list, tuple, only support addition, not support subtraction.

Cautions

If you are using Python 2.1 or lower, it will import from py1compa.py (means "Python 1's compatible"). If you want to iter the object, please define these functions if the Python version does not have iter or next function:

iter = lambda obj: obj.__iter__()
next = lambda obj: obj.next()

Release files for range-anytype 0.5.12.342184b0

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

Source distribution (sdist)

Source distribution for range-anytype 0.5.12.342184b0
File Size Uploaded
range-anytype-0.5.12.342184b0.tar.gz 5.7 kB Details

Release files / range-anytype-0.5.12.342184b0.tar.gz

Download URL range-anytype-0.5.12.342184b0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3487d5096e610ef6f73424a2b9cd75b0160fbc4314712007b7bd412d6089b3ce
BLAKE2b-256 checksum
How to use checksums
850af60e7c7a97ab6084fc830364496a360f210cdf499af7354baca296455b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
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