Commit graph

8 commits

Author SHA1 Message Date
John Wiegley
2d941730b1 Largely removed all of Ledger's use of global variables, for the REPL's sake. 2009-02-04 19:55:27 -04:00
John Wiegley
c6d3cce6d5 Added __str__ and __repr__ methods for ledger.Value. 2009-02-03 19:06:56 -04:00
John Wiegley
3434650848 Removed the binary caching code, and the XML, QIF and Gnucash parsers. 2009-02-03 12:22:10 -04:00
John Wiegley
e9ff5caa13 Rationals based math is now passing the unit tests. 2009-01-31 04:25:05 -04:00
John Wiegley
e0dd2cd0a4 Changed to using rational numbers instead of integer approximations.
As a result, dependency on the gdtoa was dropped, and dependency on mpfr was
added.
2009-01-30 19:30:16 -04:00
John Wiegley
f1257cbc3e Removed all dependency on gdtoa. 2009-01-30 16:19:31 -04:00
John Wiegley
1aa1ff1977 Fully exported the value_t type to Python.
Now this code works from a value expression:

  def myvalue(incoming):
      import ledger
      x = ledger.Value("100.23")
      print x.type()
      return incoming + x
2009-01-28 17:17:44 -04:00
John Wiegley
fc8dd14467 Create a py_value module, for translating value_t objects to/from Python. 2009-01-23 15:59:01 -04:00