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.cc | |
parent | d073a7e8a599def9c6dae0f98903d9b59766e9fc (diff) | |
download | fork-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.cc | 5 |
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&"); |