donno2048 / notint

This is not an integer

Home Page:https://pypi.org/project/notint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notint

This is basically to demo the magic methods.

Install it from PyPi

pip install notint

Install it from GitHub

pip install git+https://github.com/donno2048/notint

Examples

After installing the package try to run this in the python console (line-by-line):

from notint import NotInt # Import NotInt
noin = NotInt(42) # Create a new NotInt object with the value of 42 (or else)
isinstance(noin, int) # Check whether python thinks it's an int
noin == None
noin is None
noin == noin
noin != noin
noin == "42"
noin == 42
noin == 43
print(noin)

About

This is not an integer

https://pypi.org/project/notint/

License:MIT License


Languages

Language:Python 100.0%