From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19173 invoked by alias); 2 Jan 2012 17:44:53 -0000 Received: (qmail 19138 invoked by uid 22791); 2 Jan 2012 17:44:52 -0000 X-SWARE-Spam-Status: No, hits=-3.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Jan 2012 17:44:39 +0000 Received: by vcge1 with SMTP id e1so13423499vcg.0 for ; Mon, 02 Jan 2012 09:44:38 -0800 (PST) Received: by 10.220.224.194 with SMTP id ip2mr27792768vcb.41.1325526278391; Mon, 02 Jan 2012 09:44:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.224.194 with SMTP id ip2mr27792756vcb.41.1325526278316; Mon, 02 Jan 2012 09:44:38 -0800 (PST) Received: by 10.220.199.4 with HTTP; Mon, 2 Jan 2012 09:44:38 -0800 (PST) In-Reply-To: References: Date: Mon, 02 Jan 2012 17:44:00 -0000 Message-ID: Subject: Re: [RFC] A new command 'grep' From: Doug Evans To: Kevin Pouget Cc: Eli Zaretskii , Siva Chandra , gdb-patches@sourceware.org X-System-Of-Record: true Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2012-01/txt/msg00052.txt.bz2 On Mon, Jan 2, 2012 at 1:28 AM, Kevin Pouget wrote: > On Mon, Jan 2, 2012 at 9:54 AM, Eli Zaretskii wrote: >> >> I think this is the first time we receive a proposal for a command >> implemented in Python. =A0Perhaps there's a place to discuss whether >> some policy is in order in this regard. =A0E.g., the command will be >> unavailable in non-Python builds, which at least needs to be >> documented. =A0There may be other aspects that are worth discussing. > > I'm also curious about that, and maybe first of all, is there a Python > specific coding convention likely to be enforced in GNU projects > and/or GDB? Sorry for the repeat. [I wasn't aware the mail program I was using would sent it as rich html, si= gh.] For reference sake, there are already some gdb commands in python, see python/lib/gdb/command. The pretty printer support there doesn't need to worry about non-python builds of course. As for coding convention, we follow pep008 with a few additions. ref: http://sourceware.org/gdb/current/onlinedocs/gdbint/Coding-Standards.h= tml#Coding-Standards