Skip to main content

isinstance - more tolerant

Project description

isinstance - more tolerant

# Tested with:
# Python 3.9.13
# Windows 10

This function checks: 
isinstance(__object, modul)
type(__object).__module__ == getattr(modul, "__name__")
str(type(__object)) == str(type(modul))


p = pd.NA
isinstance(p, pd.NA) # Exception
isinstance_tolerant(p, pd.NA) # no Exception
p = None
isinstance(p, None) # Exception
isinstance_tolerant(p, None)  # no Exception

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

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

Source Distribution

tolerant_isinstance-0.10.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

tolerant_isinstance-0.10-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tolerant_isinstance-0.10.tar.gz.

File metadata

  • Download URL: tolerant_isinstance-0.10.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tolerant_isinstance-0.10.tar.gz
Algorithm Hash digest
SHA256 ac5174e7b2760deaeb8f08ad54c594ffc8b4eddad0134a7fe4043d861631f9c6
MD5 bb6a49f3115d527d8a71609424ff2424
BLAKE2b-256 52bddf1f0062fa4f04a8167bd274ca7539d2711fc2bf99bf71675285b76b770b

See more details on using hashes here.

File details

Details for the file tolerant_isinstance-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for tolerant_isinstance-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ff44b20b7bb92c0d935a3b3b6be168102d082ec1e87b893bf018159c504894
MD5 a15dcc1e90d0adf62e1d81f13cd131b5
BLAKE2b-256 50a22004dc6d1908d98b8df53ede9ad13a80c49238ed112acdbd031e5a009ab1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page