Example
In [0]: from numbers import *
In [0]: from extended_int import *
In [0]: i = IntegerInfinity()
In [4]: float(i)
Out[4]: inf
In [5]: print(i)
inf
In [6]: i ** i
Out[6]: inf
In [7]: i
Out[7]: inf
In [9]: isinstance(i, Real)
Out[9]: True
In [10]: isinstance(i, Integral)
Out[10]: False
In [11]: isinstance(i, Infinite)
Out[11]: True
In [12]: isinstance(i, ExtendedIntegral)
Out[12]: True
In [13]: isinstance(2, ExtendedIntegral)
Out[13]: True
In [14]: isinstance(2, Infinite)
Out[14]: False
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
extended_int-0.2.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file extended_int-0.2.tar.gz.
File metadata
- Download URL: extended_int-0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1508b2975368f0b7dc7ffbcab43fddd24d3b7664eee0ac70f9a1018088f8af47
|
|
| MD5 |
8d08dc3a0906886d5b538535e191305a
|
|
| BLAKE2b-256 |
62c08e6131c4eb09e17781e5f0be1e2a1ff2c022385d66af9d935bd84c6c9cc0
|
File details
Details for the file extended_int-0.2-py3-none-any.whl.
File metadata
- Download URL: extended_int-0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba3a7c1a0c2f9fbf6365fee401f8fbc5a9a5441029d2953b6adaa702bb42d947
|
|
| MD5 |
4087701a2545f895a00e1e3d9ab8e212
|
|
| BLAKE2b-256 |
e60abe13fba6651f800ad33cef77bc43861973019417855ec63c416f7c0d1bd6
|