From 60059750061fe59c83adc869f36335a083955608 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Nov 2009 13:36:16 -0500 Subject: Check for Python options before functions --- src/pyinterp.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pyinterp.cc') 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 * 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); -- cgit v1.2.3