I finally got the Python interface built, and I'm trying to see if I can 
write code that plots expenses by month. From the command line I can do 
'ledger reg Expenses:Utilities -M', and Journal.query() is documented to 
accept "every argument you can specify on the command line, include 
--options", so I thought this would work:

  ledger python
  >>> import ledger
  >>> journal = ledger.read_journal('finances.dat')
  >>> [post for post in journal.query('Expenses:Utilities -M')]

Unfortunately this segfaults every time. (Without the -M it works fine.) 
Obviously the segfault is a bug, but am I using the interface correctly?


Matthew

Reply via email to