Re: Python GObject Introspectation Syntax
- From: Tshepang Lekhonkhobe <tshepang gmail com>
- To: Tomeu Vizoso <tomeu tomeuvizoso net>
- Cc: python-hackers-list gnome org
- Subject: Re: Python GObject Introspectation Syntax
- Date: Wed, 6 Oct 2010 09:14:12 +0200
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]