Re: how to convert VB scripts to Gnumeric python

Morten Welinder <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnumeric
Message-ID <CANv4PNmUVm8PnCVFqMibwefw=B+FThoX5QdgUmb6f+cw4L0QnA@mail.gmail.com>
I tried to write a script to do some basic operations, but I immediately
hit problems in introspection
and/or pygobject.  Specifically, something gets terminally confused over
sheet_cell_set_value
leading to a double-free.  Even if they fix that right now, it's going to
be years before stable distributions
will see the fix.

In this particular case I might be able to paper over the problem by
interposing a function that copies
its argument instead of taking ownership.  That'll slow down python a bit,
but if you're using python
you're probably not that much in a hurry.

The key to getting parts of Gnumeric available via python is to have
accurate introspection annotations
for the relevant APIs.  If anyone feels like helping with that, it would be
appreciated.

Morten

_______________________________________________
gnumeric-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnumeric-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.