# Isinstance() not working between classobj and instance

**URL:** <https://forum.inductiveautomation.com/t/isinstance-not-working-between-classobj-and-instance/97673>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 23, 2024, 3:12pm UTC](https://forum.inductiveautomation.com/t/isinstance-not-working-between-classobj-and-instance/97673 "2024-10-23T15:12:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 23, 2024, 4:55pm UTC](https://forum.inductiveautomation.com/t/isinstance-not-working-between-classobj-and-instance/97673/4 "2024-10-23T16:55:39Z")

</div>

> [@danielps1818](#):
>
> we can't use imports

You can never safely use imports with Ignition project library scripts. Ignition doesn't use jython's import machinery.

Edit: This long-standing script library bug might be (part of) the reason for the no-import best practice:

> [@Project Library Script Initialization Races](https://forum.inductiveautomation.com/t/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/isinstance-not-working-between-classobj-and-instance/97673)._
