Rubypython 0.5.1 Released

rubypython version 0.5.1 has been released!

RubyPython is a bridge between the Ruby and Python interpreters. It
embeds a
running Python interpreter in the Ruby application’s process using FFI
provides a means for wrapping, converting, and calling Python objects

RubyPython uses FFI to marshal the data between the Ruby and Python VMs
make Python calls. You can:

  • Inherit from Python classes.
  • Configure callbacks from Python.
  • Run Python generators (on Ruby 1.9.2 or later).


0.5.1 / 2011-03-17

  • Major Enhancements:
    • Procs and methods can be passed to Python. [raineszm]
    • Python to Ruby inheritance: A Ruby class can inherit from a Python
      (EXPERIMENTAL). [steeve]
    • The Python library can now be reloaded (EXPERIMENTAL). There is a
      chance of a segfault if this is used with a native extension.
    • Python functions and methods can be called with a terminal
      point to enable keyword argument processing in Python
      (EXPERIMENTAL). [tmm1]
  • Minor Enhancements:
    • Improved Python generator support. [steeve]
    • PythonError now inherits from RuntimeError. [halostatue]
    • Added a Py_REFCNT macro for debugging reference counting. [tmm1]
  • Changes:
    • Moved to RSpec2. [halostatue]
    • Moved Rakefile to hoe; added autotest. [halostatue]
  • Bug Fixes:
    • Fixed a reference counting bug that could crash the Python VM.
    • Fixed a memory leak/reference counting bug related to method
      (when turning the argument list into a tuple, PyList_SetItem steals
      references). Depends on FFI 1.0.7 (or higher) with modifications to
      aggressively free temporary Python objects created. [tmm1]
    • Restored Ruby 1.8.7 compatibility where possible. [halostatue]
    • Fixed FFI loader to be more robust and do more through FFI.
    • Fixed documentation errors. [halostatue]
  • Project Management:
    • Rupy has been merged back into RubyPython.
    • Made the project website on RubyForge generatable from the readme
      and a
      template. Adopted the 960 grid system and modern CSS techniques.
    • Added a contributors document.