summaryrefslogtreecommitdiff
path: root/src/py_value.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add Python bindings for roundtoMax Nikulin2024-08-071-0/+2
| | | | | | | | | Expose `roundto` and `in_place_roundto` to `Amount`, `Balance`, and `Value` Python classes. They may be handy for debugging. The methods were added after introducing of bindings and likely it is a reason why they were missed. Closes: #2365
* Refactor python related types into ledger::python namespaceAlexis Hildebrandt2023-04-121-0/+1
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Port to python3Dimitri John Ledkov2019-12-051-1/+1
|
* Remove unused function py_dump_relaxed()Tim Landscheidt2019-01-131-7/+1
| | | | | The only user of py_dump_relaxed() was removed in commit 0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405.
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* Make bool implicitly convertible in Python to value_tJohn Wiegley2016-11-121-0/+1
|
* [python] Remove double quotes from unicode valuesAlexis Hildebrandt2016-01-111-1/+0
| | | | | When converting a ledger.Value to unicode the Python API added double quotes around it.
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Allow dates to be passed to Python value() methodJohn Wiegley2012-03-301-0/+6
|
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-3/+3
|
* Removed value_t::price and balance_t::priceJohn Wiegley2012-03-071-2/+1
|
* Added a new 'python' directiveJohn Wiegley2012-03-011-1/+1
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-29/+29
|
* Use ptr_deque for value_t::sequence_tJohn Wiegley2010-06-101-1/+5
| | | | | | | | | This is to work around undefined behavior according to the Standard, [lib.res.on.functions]/2: "In particular, the effects are undefined in the following cases: [..] - if an incomplete type (3.9) is used as a template argument when instantiating a template component."
* A further simplification of -V and -XJohn Wiegley2010-06-071-3/+3
| | | | | | | | With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Fixed Ledger/Python byte vs. char Unicode bridgeJohn Wiegley2009-11-201-11/+18
|
* Normalized the value() method for Python numericsJohn Wiegley2009-11-201-0/+17
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-19/+20
|
* Value.to_sequence returns a valid Python sequenceJohn Wiegley2009-11-111-0/+4
|
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+2
|
* Value.basetype in Python returns a Value's base typeJohn Wiegley2009-11-111-0/+18
|
* Report sought magnitude when balancing errors occurJohn Wiegley2009-11-051-0/+2
|
* Simplified usage of Boost.Python in several casesJohn Wiegley2009-11-051-1/+3
|
* Segregated symbols into 5 separate namespacesJohn Wiegley2009-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | The different namespaces are: Function Value expression functions, which receive a "context" Option Command-line options Precommand Commands which are invoked before reading the journal Command Commands which are invoked after reading the journal Directive Directives that occur at column 0 in a data file This greatly eases the ability for Python uses to add intercept hooks to change how the basic Ledger module functions. An example of what should be possible soon: import ledger def my_foo_handler(value): print "--foo received:", value ledger.add_handler(ledger.Option, "foo=", my_foo_handler)
* Changed two callout commentsJohn Wiegley2009-11-031-2/+2
|
* Whitespace fixJohn Wiegley2009-11-031-1/+1
|
* Completed Python bindings for value_tJohn Wiegley2009-11-021-75/+97
|
* Removed most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-2/+0
|
* Change the value_t::POINTER type to value_t::SCOPEJohn Wiegley2009-10-301-3/+3
| | | | | scope_t pointers are the only kind that are ever stored in value objects, so there was no need to make it generic and use boost::any.
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+1
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+1
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-1/+1
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Moved python/*.cc files into src/John Wiegley2009-02-241-0/+304
This is because soon, I intend to have real Python source files in python/.