Comment 12 for bug 896836

Revision history for this message
Jonathan Heeth (jonathanheeth1) wrote :

As someone in a prior bug-report discovered that uncommenting line 27 in dist-packages/gobject/constants.py cures the crash.
Actually that line makes no sense as a python statement, but just listing the variable name TYPE_INVALID, without assigning any value in constants.py (which the comment there states is defined in gobjectmodule.c) eliminates the crash.

This would seem to discredit the theory that simultaneous loading of static and dynamic bindings is to blame.

Does the variable NEED to be declared in the python even if it's value is assinge in a .c file in order to work ?
I'm not knowledgable about the inner workings of the python language.
Is this a valid fix?