From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19946 invoked by alias); 10 Nov 2009 18:49:38 -0000 Received: (qmail 19937 invoked by uid 22791); 10 Nov 2009 18:49:38 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f219.google.com (HELO mail-bw0-f219.google.com) (209.85.218.219) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Nov 2009 18:49:32 +0000 Received: by bwz19 with SMTP id 19so378830bwz.8 for ; Tue, 10 Nov 2009 10:49:29 -0800 (PST) Received: by 10.204.11.17 with SMTP id r17mr478059bkr.41.1257878969574; Tue, 10 Nov 2009 10:49:29 -0800 (PST) Received: from ?192.168.0.103? ([77.127.197.150]) by mx.google.com with ESMTPS id 35sm1542861fkt.46.2009.11.10.10.49.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 10 Nov 2009 10:49:28 -0800 (PST) Message-ID: <4AF9B5AE.6070004@gmail.com> Date: Tue, 10 Nov 2009 20:49:00 -0000 From: Marcelo Taube User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: Some feedback about the python scripting feature References: <4AF898F3.50908@gmail.com> <4AF8993D.2050507@gmail.com> <20091110153803.GA26779@caradoc.them.org> In-Reply-To: <20091110153803.GA26779@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00123.txt.bz2 Hello, > I don't know if it has completion or automatic indentation, because no > version of Python I have installed does either :-) Is this new? > I am sorry, i guess i was "slightly" wrong. The completion is not automatic, someone added it to my working environment and i just thought it was part of the default behaiviour. But it should be very easy to add to any other environment, i saw that the next three lines should do the job: >>> import rlcompleter >>> import readline >>> readline.parse_and_bind("tab: complete") Regarding the indentation, there is no support in the regular python shell... only in the 'ipython' shell or the 'idle' shell that are kind of improved CUIs for python. In spite of that, i still think that the python shell has advantages, there is a difference between having direct response to the commands executed in python and having to imagine that the syntax is ok till you finish writing all the code. Also mixing the history of lines insterted in python context and lines inserted in gdb language is kind of bothering, they cannot really be reused. |Thanks again for all the great work. Marcelo