Re: Python GObject Introspectation Syntax
- From: Sebastian Billaudelle <stein cream-project org>
- To: python-hackers-list gnome org
- Subject: Re: Python GObject Introspectation Syntax
- Date: Wed, 6 Oct 2010 07:09:26 +0200
Hi!
Am Tue, 5 Oct 2010 17:45:04 -0400
schrieb Barry Warsaw <barry python org>:
> 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.
Yes, that's exactly what I meant. Thanks!
Sebastian Billaudelle
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]