diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 17:16:59 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 17:16:59 -0500 |
commit | 1bdb9330e56e49ecd660f3aafdc2d349a20e3044 (patch) | |
tree | f352e064a65bc7f3a87a634b1fcc689bb2441305 /src/py_xact.cc | |
parent | 312d4c5f5339c61253e86cd9ce825370eb4be053 (diff) | |
download | fork-ledger-1bdb9330e56e49ecd660f3aafdc2d349a20e3044.tar.gz fork-ledger-1bdb9330e56e49ecd660f3aafdc2d349a20e3044.tar.bz2 fork-ledger-1bdb9330e56e49ecd660f3aafdc2d349a20e3044.zip |
Simplified passing of scope objects in Python
Diffstat (limited to 'src/py_xact.cc')
-rw-r--r-- | src/py_xact.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py_xact.cc b/src/py_xact.cc index f5453d15..d886bf90 100644 --- a/src/py_xact.cc +++ b/src/py_xact.cc @@ -91,7 +91,7 @@ void export_xact() .def("__len__", posts_len) .def("__getitem__", posts_getitem, - return_value_policy<reference_existing_object>()) + return_internal_reference<>()) .def("add_post", &xact_base_t::add_post, with_custodian_and_ward<1, 2>()) .def("remove_post", &xact_base_t::add_post) |