Re: PyGObject C wrappers



On Mon, May 13, 2013 at 1:36 PM, Matthias-Christian Ott <ott mirix org> wrote:
PyGObject can generate a C wrapper to call methods on Python objects
that inherit from GObject?

Yes, wrappers are generated at runtime using GI/libffi. This is referred to as a closure in the source code and is used for virtual function implementations as well as Python callbacks for async notifications. See:

https://git.gnome.org/browse/pygobject/tree/gi/pygi-closure.c?h=pygobject-3-8#n602

-Simon



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