2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

scope default constructor gets current scope; killed scope::get()

[SVN r14599]
This commit is contained in:
Dave Abrahams
2002-07-25 14:52:11 +00:00
parent 5976005c4a
commit 8763fd1c53
2 changed files with 11 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ namespace boost { namespace python { namespace detail {
module_base::module_base(const char* name)
: m_module(
allow_null(python::borrowed(
scope::get().ptr()
scope().ptr()
)))
{
}
@@ -94,6 +94,6 @@ BOOST_PYTHON_DECL void init_module(char const* name, void(*init_function)())
namespace boost { namespace python {
BOOST_PYTHON_DECL PyObject* scope::current_scope;
BOOST_PYTHON_DECL PyObject* scope::current_scope = Py_None;
}}