comparison pycall.cc @ 371:55cd61fe519a

pycall: improve performance, delete unnecessary call to init_exceptions (fixes issue #64) * pycall.cc (Fpycall): Delete call to pytave::init_exceptions. This function only serves to register C++ exceptions with Boost.Python.
author Mike Miller <mtmiller@octave.org>
date Fri, 26 Aug 2016 10:57:08 -0700
parents 4d54fb68de71
children 692cecebc71f
comparison
equal deleted inserted replaced
370:a8102b1a57a1 371:55cd61fe519a
93 && args(0).class_name () == "pyobject"))) 93 && args(0).class_name () == "pyobject")))
94 error ("pycall: FUNC must be a string or a Python reference"); 94 error ("pycall: FUNC must be a string or a Python reference");
95 95
96 Py_Initialize (); 96 Py_Initialize ();
97 97
98 pytave::init_exceptions ();
99 numeric::array::set_module_and_type ("numpy", "ndarray"); 98 numeric::array::set_module_and_type ("numpy", "ndarray");
100 _import_array (); 99 _import_array ();
101 100
102 try 101 try
103 { 102 {