Ticket #2016: change_default_object_to_dict.patch
File change_default_object_to_dict.patch, 1.2 KB (added by , 14 years ago) |
---|
-
exec.hpp
5 5 #ifndef EXEC_SS20050616_HPP 6 6 # define EXEC_SS20050616_HPP 7 7 8 # include <boost/python/ object.hpp>8 # include <boost/python/dict.hpp> 9 9 # include <boost/python/str.hpp> 10 10 11 11 namespace boost … … 18 18 // used during evaluation. 19 19 object 20 20 BOOST_PYTHON_DECL 21 eval(str string, object global = object(), object local = object());21 eval(str string, object global = dict(), object local = dict()); 22 22 23 23 // Execute python source code from str. 24 24 // global and local are the global and local scopes respectively, 25 25 // used during execution. 26 26 object 27 27 BOOST_PYTHON_DECL 28 exec(str string, object global = object(), object local = object());28 exec(str string, object global = dict(), object local = dict()); 29 29 30 30 // Execute python source code from file filename. 31 31 // global and local are the global and local scopes respectively, 32 32 // used during execution. 33 33 object 34 34 BOOST_PYTHON_DECL 35 exec_file(str filename, object global = object(), object local = object());35 exec_file(str filename, object global = dict(), object local = dict()); 36 36 37 37 } 38 38 }