diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-29 18:57:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-29 18:57:02 -0400 |
commit | 200d919fe7c8bcf021011c16fb6ec50821444d5e (patch) | |
tree | c3da877b2968bf9ee697727c19bec5fe16c59144 /pyinterp.h | |
parent | d073a7e8a599def9c6dae0f98903d9b59766e9fc (diff) | |
download | ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.tar.gz ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.tar.bz2 ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.zip |
Changed the way scopes are structured for an upcoming design change.
Diffstat (limited to 'pyinterp.h')
-rw-r--r-- | pyinterp.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -39,8 +39,7 @@ namespace ledger { -class python_interpreter_t - : public noncopyable, public expr_t::symbol_scope_t +class python_interpreter_t : public noncopyable, public scope_t { boost::python::handle<> mmodule; @@ -95,8 +94,7 @@ public: virtual expr_t::ptr_op_t lookup(const string& name) { if (boost::python::object func = eval(name)) return WRAP_FUNCTOR(functor_t(name, func)); - else - return expr_t::symbol_scope_t::lookup(name); + return expr_t::ptr_op_t(); } class lambda_t : public functor_t { |