[PATCH] Python bindings (with much of the core api)

Jeff Green jmgreen7 at gmail.com
Wed Apr 2 16:17:31 EDT 2008


I have looked into trying to combine the existing Swig interface files and
the python-bindings interface files. As far as I can tell there isn't a way
to specify multiple language specific sections in a single interface file
(someone please correct me if I'm missing something). The best bet might be
to put the non-language specific stuff into a separate file (it would mostly
consist of common typedefs and function declarations) and have the language
specific interface files %include that file. There would also still need to
be separate typemaps for more complex types like GList since they need to be
handled in a particular way for each target language.
I think doing it this way would work well, I'm just slightly reluctant to do
it because it would involve mucking around with things unrelated to the
Python bindings.


Jeff


On Wed, Mar 26, 2008 at 11:38 AM, Derek Atkins <warlord at mit.edu> wrote:

> Mark Jenkins <mark at parit.ca> writes:
>
> >> I'm wondering if it makes sense to try to combine them.. or if it
> >> makes sense to keep them separate?  I'm not sure what it would
> >> look like either way.
> >
> > I agree that it would make sense to combine them for the reasons you
> > state. SWIG provides a lot of powerful features, and I think there's a
> > good chance this is achievable.
> >
> > Would you like to see an attempt made before committing these?
>
> If you don't mind I'd like to see an attempt made before committing
> these.  I'm really excited about this (even though I think Python
> as a language is the spawn of the Devil).  :)
>
> > Or can we commit now and include this task amongst the other
> > improvements the python bindings are still going to need.
>
> > Mark
>
> -derek
>
> --
>       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>       Member, MIT Student Information Processing Board  (SIPB)
>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>       warlord at MIT.EDU                        PGP key available
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>


More information about the gnucash-devel mailing list