Re: Python GObject Introspectation Syntax



On Tue, Oct 5, 2010 at 23:45, Barry Warsaw <barry python org> wrote:
> On Oct 05, 2010, at 11:38 PM, Sebastian Billaudelle wrote:
>
>>> Use the same coding style as your language. If libraries for your
>>> language normally uses underscores do that as well. For instance,
>>> Java bindings should have a method on it's GtkButton wrapper called
>>> setLabel and not set_label.
>>
>>Following this statement, wouldn't it be better to have something like
>>
>>    from gi.repository import gtk
>>
>>which would fullfill PEP8's requirements and be more pythonic? This
>>would help people to port their apps a lot.
>
> 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.

Everybody thinks this change is a good idea?

Regards,

Tomeu

> -Barry
>
> _______________________________________________
> 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]