Write Perl subs and classes in Python

Edit Package perl-Inline-Python
https://metacpan.org/release/Inline-Python

The 'Inline::Python' module allows you to put Python source code directly "inline" in a Perl script or module. It sets up an in-process Python interpreter, runs your code, and then examines Python's symbol table for things to bind to Perl. The process of interrogating the Python interpreter for globals only occurs the first time you run your Python code. The namespace is cached, and subsequent calls use the cached version.

This document describes 'Inline::Python', the Perl package which gives you access to a Python interpreter. For lack of a better place to keep it, it also gives you instructions on how to use 'perlmodule', the Python package which gives you access to the Perl interpreter.

Refresh
Refresh
Source Files
Filename Size Changed
Inline-Python-0.39.tar.gz 0000046805 45.7 KB
happy_gcc.patch 0000002549 2.49 KB
perl-Inline-Python.changes 0000003059 2.99 KB
perl-Inline-Python.spec 0000002679 2.62 KB
Revision 3 (latest revision is 21)
Stephan Kulow's avatar Stephan Kulow (coolo) committed (revision 3)
- updated to 0.39
      - Added py_is_tuple and made Pl2Py recognize an array ref that has
        been a tuple before in Python.
      - Fixed memory corruption on a Python function calling a Perl function
        that changed the stack pointer.
      - Fixed several memory leaks (scalars and dict keys).
      - Fixed wrong refcount of return values in py_eval (RT #48081)
      - Fixed accessing Unicode keys in a dict passed from Perl.
      - Fixed compatability of t/30floats.t with Python 2.7.
  
      - Fix Perl assertion fail if __getitem__ called multiple times
      - Fix "Attempt to free unreferenced scalar" sometimes happening when
        calling a Perl sub with named parameters from Python.
      - Fix several memory leaks found using valgrind
      - Add py_finalize to be able to shut down the Python interpreter.
  
      - Added line numbers to Python exception messages.
      - Fixed passing of a perl code ref through Python space.
      - Allow passing references to methods from Python to Perl.
      - Implemented py_has_attr complementing py_get_attr.
      - We now support stringification of Python objects via __str__ methods.
      - Fixed segfault when accessing a Python object's attributes throws an
        exception.
      - Fixed some problems with the test suite, hopefully making installation
        work on more machines.
      - Fixed compilation on Win32, linking still seems broken though :(
  
      - Fixed a segfault when passing dicts with Unicode keys to Perl
      - Pass Python exceptions to Perl instead of just printing to STDERR
Comments 0
openSUSE Build Service is sponsored by