[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python-on-guile

From: Stefan Israelsson Tampe
Subject: Re: python-on-guile
Date: Sun, 9 Feb 2020 18:59:21 +0100

I'm the author of that lib.

The main bindings are reachable through (language python module python)

So you could now go ahead and do
> (use-modules (language python module python))
> ;L python

And you will get a python shell that works quite ok for one liners

If you write a module and place it in a/b/
you can use the classes and functions theirin by

(use-modules (a b c))

you can load a .py file as (i hope this work)
  (load "")

If you place a module in (language python module you can import ir as
a usual mode as
> from a import *

The documentation is for the macro framework that enables you to work with
python classes and idioms like python iteration.

Hope this helps

On Sun, Feb 9, 2020 at 6:31 PM david larsson <address@hidden>

> Hi everyone,
> I am trying to wrap my head around how to use the python-on-guile
> library, but Im struggling. Does anyone have example code that might
> help, and which isn't too advanced?
> All tips and suggestions appreciated!
> Best regards,
> David

reply via email to

[Prev in Thread] Current Thread [Next in Thread]