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 [0] # Segmentation fault; c.get (0) segfaults also
context:
MacBook Pro
Mac OS X 10.6.7
libSBML 4.3.1
python 2.6.1