diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-08 13:36:16 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-08 13:36:16 -0500 |
commit | 60059750061fe59c83adc869f36335a083955608 (patch) | |
tree | b820b7c4b064e5d430439839768aa5b855ce3a4a /src/pyinterp.cc | |
parent | 188bf10b6c971caf9565b89361d8d82678307653 (diff) | |
download | fork-ledger-60059750061fe59c83adc869f36335a083955608.tar.gz fork-ledger-60059750061fe59c83adc869f36335a083955608.tar.bz2 fork-ledger-60059750061fe59c83adc869f36335a083955608.zip |
Check for Python options before functions
Diffstat (limited to 'src/pyinterp.cc')
-rw-r--r-- | src/pyinterp.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc index 2df82563..6a2dea03 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -297,6 +297,9 @@ expr_t::ptr_op_t python_interpreter_t::lookup(const symbol_t::kind_t kind, switch (kind) { case symbol_t::FUNCTION: + if (option_t<python_interpreter_t> * handler = lookup_option(name.c_str())) + return MAKE_OPT_FUNCTOR(python_interpreter_t, handler); + if (is_initialized && main_nspace.has_key(name.c_str())) { DEBUG("python.interp", "Python lookup: " << name); |