Re: Python GObject Introspectation Syntax
- From: Tomeu Vizoso <tomeu tomeuvizoso net>
- To: Steve Frécinaux <code istique net>
- Cc: python-hackers-list gnome org
- Subject: Re: Python GObject Introspectation Syntax
- Date: Wed, 6 Oct 2010 09:27:45 +0200
On Wed, Oct 6, 2010 at 09:21, Steve Frécinaux <code istique net> wrote:
> 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".
Should we expect that one day there will be enough typelibs to make
that really a challenge?
>> 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.
So if nobody comes with a good argument against, I guess we need a patch ;)
> 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
Which issues do you anticipate?
> :-) (and default values, don't forget about those!)
Well, that one will require quite bit of work in
gobject-introspection, wish I had time myself. Something that should
be far easier but also important for porting would be making the
default constructor accept construct-time properties.
Regards,
Tomeu
> _______________________________________________
> python-hackers-list mailing list
> python-hackers-list gnome org
> http://mail.gnome.org/mailman/listinfo/python-hackers-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]