LogLevelFlags.LEVEL_MASK causes uncatchable OverflowError
Trying to do any value comparisons using GLib.LogLevelFlags.LEVEL_MASK
causes an OverflowError
:
>>> from gi.repository import GLib
>>> GLib.LogLevelFlags.LEVEL_MASK == GLib.LogLevelFlags.LEVEL_INFO
OverflowError: Python int too large to convert to C long
<snip>
It's worth mentioning that this is only for the LEVEL_MASK
flag on LogLevelFlags
, not any other introspected flags types that I've found, so it's not exactly a big deal, it's just... weird.
I haven't investigated why the OverflowError
isn't catchable, but that feels like a different issue. This happens on Python 3.6.6 and pygobject 3.28.3.