# Unexpected behaviour from isinstance(), issubclass(), and type comparison

**URL:** <https://forum.inductiveautomation.com/t/unexpected-behaviour-from-isinstance-issubclass-and-type-comparison/99382>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [December 3, 2024, 7:16pm UTC](https://forum.inductiveautomation.com/t/unexpected-behaviour-from-isinstance-issubclass-and-type-comparison/99382 "2024-12-03T19:16:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 3, 2024, 8:37pm UTC](https://forum.inductiveautomation.com/t/unexpected-behaviour-from-isinstance-issubclass-and-type-comparison/99382/2 "2024-12-03T20:37:52Z")

</div>

Have you seen this topic?

> [@\[IGN-6503\]Project Library Script Initialization Races](https://forum.inductiveautomation.com/t/ign-6503-project-library-script-initialization-races/98636):
>
> Are you annoyed by pseudo-random breakage in Ignition project library scripting? Odd top-level constants being garbled, or operations in the top level that have side effects running twice? Or more? Not happening much, but always around project edits, and sometimes even on gateway restart? Yeah, me too. frowning_face Poking around under the hood back in the spring, for a module development task, I ran across some problematic IA bytecode and pinged some people. But it went nowhere, as I co…

---

_[View the full topic](https://forum.inductiveautomation.com/t/unexpected-behaviour-from-isinstance-issubclass-and-type-comparison/99382)._
