Skip to content

Commit b09d80a

Browse files
res2kstefanseefeld
authored andcommitted
Fix exec(), eval() not passing through arguments
1 parent 135c025 commit b09d80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exec.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace python
1616

1717
object BOOST_PYTHON_DECL eval(str string, object global, object local)
1818
{
19-
return eval(python::extract<char const *>(string));
19+
return eval(python::extract<char const *>(string), global, local);
2020
}
2121

2222
object BOOST_PYTHON_DECL eval(char const *string, object global, object local)
@@ -39,7 +39,7 @@ object BOOST_PYTHON_DECL eval(char const *string, object global, object local)
3939

4040
object BOOST_PYTHON_DECL exec(str string, object global, object local)
4141
{
42-
return exec(python::extract<char const *>(string));
42+
return exec(python::extract<char const *>(string), global, local);
4343
}
4444

4545
object BOOST_PYTHON_DECL exec(char const *string, object global, object local)

0 commit comments

Comments
 (0)