Write Perl subs and classes in 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.
- Devel package for openSUSE:Factory
- Links to openSUSE:Factory / perl-Inline-Python
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:perl/perl-Inline-Python && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
Inline-Python-0.57.tar.gz | 0000061279 59.8 KB | |
cpanspec.yml | 0000000685 685 Bytes | |
perl-Inline-Python.changes | 0000007230 7.06 KB | |
perl-Inline-Python.spec | 0000002554 2.49 KB |
Revision 20 (latest revision is 21)
Dirk Stoecker (dstoecker)
accepted
request 1080773
from
Tina Müller (tinita)
(revision 20)
- updated to 0.57 see /usr/share/doc/packages/perl-Inline-Python/Changes 0.57 Sun Sep 18 13:20:00 CEST 2022 (Stefan Seifert) - Try to detect more object types. - Further tighten the "is it a dict or object" check - Also skip List and Tuple when checking for python object - Unify "is this an object" checks into a macro to fix method calls on strange objects - Define PY_MAJOR_VERSION automatically - Search for and prefer python3 when building - Pass ASCII strings as <class 'str'> in Python 3 - Fix segfault on Python 3.10 by calling Py_Initialize() before calling PyBytes_FromString() - Process rss information not supported by Proc::ProcessTable on Windows
Comments 0