From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11445 invoked by alias); 6 Oct 2010 21:21:07 -0000 Received: (qmail 11437 invoked by uid 22791); 6 Oct 2010 21:21:06 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Oct 2010 21:21:02 +0000 Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o96LKxaf030622 for ; Wed, 6 Oct 2010 14:20:59 -0700 Received: from vws16 (vws16.prod.google.com [10.241.21.144]) by hpaq6.eem.corp.google.com with ESMTP id o96LKvsD014665 for ; Wed, 6 Oct 2010 14:20:58 -0700 Received: by vws16 with SMTP id 16so25009vws.0 for ; Wed, 06 Oct 2010 14:20:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.198.201 with SMTP id ep9mr934226vcb.139.1286400053985; Wed, 06 Oct 2010 14:20:53 -0700 (PDT) Received: by 10.220.83.79 with HTTP; Wed, 6 Oct 2010 14:20:53 -0700 (PDT) Date: Wed, 06 Oct 2010 21:21:00 -0000 Message-ID: Subject: Python coding style [was Re: [RFA] New python module gdb.types] From: Doug Evans To: Joel Brobecker Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00088.txt.bz2 [note new subject line] On Wed, Oct 6, 2010 at 2:11 PM, Joel Brobecker wrote: > The python style is to not have a space before the opening parenthesis. > [...] > I think we should try to follow the Python style because it makes it > easier for Python users to read our code. Can we, at least as a first pass, adopt this? http://google-styleguide.googlecode.com/svn/trunk/pyguide.html Then I don't have to continually switch modes. :-) [There may be parts that aren't applicable here, but as a first pass, it's a good start.]