summaryrefslogtreecommitdiff
path: root/python/py_value.cc
Commit message (Collapse)AuthorAgeFilesLines
* Moved python/*.cc files into src/John Wiegley2009-02-241-304/+0
| | | | | This is because soon, I intend to have real Python source files in python/.
* Restored the --budget optionJohn Wiegley2009-02-201-1/+1
|
* Changed some value_t method namesJohn Wiegley2009-02-161-2/+2
| | | | | | | - simplify -> simplified - cast -> casted This is to differentiate them from in_place_cast and in_place_simplify.
* Removed "total_cost" valexpr, and value_t::costJohn Wiegley2009-02-151-2/+0
| | | | | Since cost reports are now calculated by setting the amount_ expression, there is no need to track a separate "total cost" entity.
* Made (un)reduce rvalue methods more consistentJohn Wiegley2009-02-121-2/+2
| | | | | | They names were changed from reduce/unreduce to reduced/unreduced, since they return the modified value. This is more consistent with the naming of rounded/rounded.
* Removed the balance_pair_t type, since it's now an unneeded abstraction.John Wiegley2009-02-091-7/+0
| | | | | This type was a holdback from the days before the amount_expr was used everywhere to determine a transaction's value.
* Fixes to the new Python/scope integration code.John Wiegley2009-02-081-2/+2
|
* Attribute lookup on a Value object which is a Scope now searches the scope.John Wiegley2009-02-081-14/+28
|
* Moved several #includes to facilitate the use of pre-compiled headers.John Wiegley2009-02-081-4/+0
|
* Removed a great many unnecessary Boost.Python files.John Wiegley2009-02-071-27/+11
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-6/+6
|
* Added __str__ and __repr__ methods for ledger.Value.John Wiegley2009-02-031-0/+16
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-18/+0
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-5/+2
|
* Changed to using rational numbers instead of integer approximations.John Wiegley2009-01-301-0/+2
| | | | | As a result, dependency on the gdtoa was dropped, and dependency on mpfr was added.
* Removed all dependency on gdtoa.John Wiegley2009-01-301-32/+0
|
* Fully exported the value_t type to Python.John Wiegley2009-01-281-12/+283
| | | | | | | | | | Now this code works from a value expression: def myvalue(incoming): import ledger x = ledger.Value("100.23") print x.type() return incoming + x
* Create a py_value module, for translating value_t objects to/from Python.John Wiegley2009-01-231-0/+83