summaryrefslogtreecommitdiff
path: root/pyinterp.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-29 18:57:02 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-29 18:57:02 -0400
commit200d919fe7c8bcf021011c16fb6ec50821444d5e (patch)
treec3da877b2968bf9ee697727c19bec5fe16c59144 /pyinterp.cc
parentd073a7e8a599def9c6dae0f98903d9b59766e9fc (diff)
downloadfork-ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.tar.gz
fork-ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.tar.bz2
fork-ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.zip
Changed the way scopes are structured for an upcoming design change.
Diffstat (limited to 'pyinterp.cc')
-rw-r--r--pyinterp.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyinterp.cc b/pyinterp.cc
index d702f291..07a619fe 100644
--- a/pyinterp.cc
+++ b/pyinterp.cc
@@ -86,9 +86,8 @@ struct python_run
}
};
-python_interpreter_t::python_interpreter_t(expr_t::scope_t& parent)
- : expr_t::symbol_scope_t(parent),
- mmodule(borrowed(PyImport_AddModule("__main__"))),
+python_interpreter_t::python_interpreter_t()
+ : scope_t(), mmodule(borrowed(PyImport_AddModule("__main__"))),
nspace(handle<>(borrowed(PyModule_GetDict(mmodule.get()))))
{
TRACE_CTOR(python_interpreter_t, "expr_t::scope_t&");