Skip to content

Tag: python-importlib

Enum comparison become False after reloading module

I have MyEnum, an enumerate derived from enum, defined in a myenum.py file such as : Then, I import this file using the importlib.import_module() method. I create a an instance of my enumerate, and test its value : it is correct, as intended. However, if I reload my file, using importlib.reload(), a is no lon…