Re: Python GObject Introspectation Syntax



On 10/06/2010 08:58 AM, Tomeu Vizoso wrote:
Python and PEP 8 would prefer lowercase module names, and underscores instead
of camelCase.

I think we are still on time to make such big changes. The only
problem in this particular case is that the typelib files are named
following CamelCase so there's some risk of clashes.

Name clashes are mostly hypothetical as Windows users wouldn't be able to have both Gtk and gtk anyway, so it would be a bad idea to have both of them at first place.

The more complicated thing will be to efficiently find "Gtk-1.0.typelib" out of "gtk".

Everybody thinks this change is a good idea?

This is something I think I already pointed out, and it would spare people switching from pygtk to pygi the burden of changing from "gtk" to "Gtk" in every single class instantiation.

While we are at it, a very nice thing would be to allow old-style constants to be handled as well, but I think it's going to be even more complicated :-) (and default values, don't forget about those!)

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