From 0814c5a23f44120088b6139bb7bf1f934f1d1057 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 24 Feb 2009 19:48:14 -0400 Subject: Added a new level of Python integration --- src/py_session.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/py_session.cc') diff --git a/src/py_session.cc b/src/py_session.cc index 108dcc3c..df0c6dd8 100644 --- a/src/py_session.cc +++ b/src/py_session.cc @@ -46,14 +46,13 @@ using namespace boost::python; void export_session() { -#if 0 - class_< session_t > ("Session") + class_< session_t, bases, + shared_ptr, boost::noncopyable > ("SessionBase") ; -#endif - //register_optional_to_python(); - - //implicitly_convertible(); + class_< python_interpreter_t, bases, + shared_ptr, boost::noncopyable > ("Session") + ; #define EXC_TRANSLATE(type) \ register_exception_translator(&exc_translate_ ## type); -- cgit v1.2.3