Method: RubyPython.stop
- Defined in:
- lib/rubypython.rb
.stop ⇒ Object
Stops the Python interpreter if it is running. Returns true
if the intepreter is stopped. All wrapped Python objects are invalid after invocation of this method. If you need the values within the Python proxy objects, be sure to call RubyPyProxy#rubify on them.
143 144 145 146 147 148 149 150 151 |
# File 'lib/rubypython.rb', line 143 def stop if defined? Python.Py_IsInitialized and Python.Py_IsInitialized != 0 Python.Py_Finalize notify :stop true else false end end |