Re: Python GObject Introspectation Syntax



On Wed, Oct 6, 2010 at 08:58, Tomeu Vizoso <tomeu tomeuvizoso net> wrote:
> 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?

Not knowing the extend of those clashes, please make the change now
before the API is sealed, so we won't be stuck with the ugly 'Gtk'
thing.


-- 
blog: http://tshepang.tumblr.com


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