I have been chewing on this for a while, and having failed to get any insight, turn to you for help.
>>> filename = 'enzymaticReaction.xml'
>>> m = readModel (filename) # <libsbml.Model; proxy of <Swig Object of type 'Model_t *' at 0x10062f150> >
>>> c = m.getListOfCompartments () # <libsbml.ListOfCompartments; proxy of <Swig Object of type 'ListOfCompartments *' at 0x100616fc0> >
>>> len (c) # 1
>>> c  # Segmentation fault; c.get (0) segfaults also
Mac OS X 10.6.7