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.3.tar.gz
(2.5 kB
view details)
Built Distributions
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
extended_int-0.3-py3.7.egg
(6.4 kB
view details)
File details
Details for the file extended_int-0.3.tar.gz.
File metadata
- Download URL: extended_int-0.3.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 |
2fac73b551fd1b910c83ba88c50e0c96db1766aee0ffa677219c542bbd5128b6
|
|
| MD5 |
3d7ad8d96f365bf1aa30bc4b69c2ca8e
|
|
| BLAKE2b-256 |
5657db4522a97c6fd8d6c7bd06032cd28f7e293c241d8408a2a87211abe52d15
|
File details
Details for the file extended_int-0.3-py3.7.egg.
File metadata
- Download URL: extended_int-0.3-py3.7.egg
- Upload date:
- Size: 6.4 kB
- Tags: Egg
- 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 |
36fe2f0d5693d64d2d60b518a786ee2a30c50de61733de418c400f14dbefa6c0
|
|
| MD5 |
5d2e8498b275ee89beec46c75c5874c3
|
|
| BLAKE2b-256 |
cdf2874b737ff17a2efcb778cedd6b12379057fd754ab36f7d083610bd5d614b
|
File details
Details for the file extended_int-0.3-py3-none-any.whl.
File metadata
- Download URL: extended_int-0.3-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 |
cac4e45b871f8209d0ec7554d41408e590c9bead50850156341791befce15afc
|
|
| MD5 |
b0e343f3a4a64254d734fed901fe05e9
|
|
| BLAKE2b-256 |
4f6b0bbd14235937732709fd9ac9d67b918aa7345daf330fe38e185af85d7b8f
|