If you want to conform to a fairly strict API design, and you don't care if the result is non-Pythonic, you can always use PyGIR. IMHO, the last thing the Python community needs is more Python packages with non-Pythonic APIs like pygtk offers.
The point of Python support in Vala is to be able to support a Pythonic API to Vala/Genie code. Most importantly is operator overloading, which Vala does not support. On Sat, Jun 19, 2010 at 12:16 AM, Celil <[email protected]> wrote: > In the long term it may be nice to add support for automatic generation > of a python module, so that one could do something like > > valac --python mymodule mymodule.vala > > to obtain a compiled python module that can be loaded from python, and > have the same classes and methods as the vala library. Maybe something > similar to valaswig, but specifically geared towards python. > > This would be especially nice for Genie users, as the two languages are > quite similar, and one would be able to seamlessly integrate Genie code > with Python code - tapping into the greater performance and execution > speed of Genie, while not sacrificing the vast libraries that are > available in Python. > > Celil > > On 06/18/2010 09:04 PM, Arc Riley wrote: > > The problem is greater than a missing vapi. The PyObject system needs > > to be properly mapped for the vapi to be useful, and that requires > > support in code. > > > > I've been advocating that we need this for some time. > > > > On Fri, Jun 18, 2010 at 11:57 PM, Celil <[email protected] > > <mailto:[email protected]>> wrote: > > > > I am writing Python bindings to a library that is written in Vala. > > Currently, I need to output the header files, and write the > > bindings in > > C. However, tt would be very nice if it was possible to write then > > in Vala. > > > > Is anybody writing a vala vapi for "Python.h"? It would be pretty > > sweet > > to be able to write python extensions in vala. > > > > Celil > > _______________________________________________ > > vala-list mailing list > > [email protected] <mailto:[email protected]> > > http://mail.gnome.org/mailman/listinfo/vala-list > > > > > >
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
