Skip to main content
https://badge.fury.io/py/extended_int.svg

This repository provides a Python base class that implements extended integers.

Example

In [1]: from numbers import Real, Integral

In [2]: from extended_int import ExtendedIntegral, int_inf

In [3]: float(int_inf)
Out[3]: inf

In [4]: print(int_inf)
inf

In [5]: int(int_inf)
---------------------------------------------------------------------------
OverflowError                             Traceback (most recent call last)

In [6]: isinstance(int_inf, Real)
Out[6]: True

In [7]: isinstance(int_inf, Integral)
Out[7]: False


In [8]: isinstance(2.5, ExtendedIntegral)

Out[8]: False

In [9]: isinstance(int_inf, ExtendedIntegral)

Out[9]: True

In [10]: isinstance(2, ExtendedIntegral)

Out[10]: True

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

extended_int-0.6-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file extended_int-0.6-py3-none-any.whl.

File metadata

  • Download URL: extended_int-0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for extended_int-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1373962de4cbd5b07dd8041bb1bf0b5a812712db44f48e1fb30f3462805941a8
MD5 d24126acc93ece3bfae85e633762062b
BLAKE2b-256 25cd65a5248cfa7a805aff63b47de820341a32b91afff3d25a1c9218e98dc23b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7

2 files

This release

0.6 This release

1 file

0.5

3 files

0.4

2 files

0.3

3 files

0.2

2 files

0.1

1 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