From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18231 invoked by alias); 10 Nov 2009 15:38:15 -0000 Received: (qmail 18219 invoked by uid 22791); 10 Nov 2009 15:38:14 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Nov 2009 15:38:07 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 7B77510D7F; Tue, 10 Nov 2009 15:38:05 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 632F210D7C; Tue, 10 Nov 2009 15:38:05 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1N7snD-0007J5-Ow; Tue, 10 Nov 2009 10:38:04 -0500 Date: Tue, 10 Nov 2009 16:53:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: Marcelo Taube , gdb@sourceware.org Subject: Re: Some feedback about the python scripting feature Message-ID: <20091110153803.GA26779@caradoc.them.org> Mail-Followup-To: Tom Tromey , Marcelo Taube , gdb@sourceware.org References: <4AF898F3.50908@gmail.com> <4AF8993D.2050507@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00118.txt.bz2 On Tue, Nov 10, 2009 at 08:06:05AM -0700, Tom Tromey wrote: > Marcelo> * *interactive python: *the current python command reads lines using > Marcelo> gdb normal input instead of the regular python prompt line, making > Marcelo> some nice features of python unavailable like > Marcelo> completions-proposals (pressing the tab-key to get the name of a > Marcelo> function completed) or auto indentation. Maybe running the regular > Marcelo> python prompt line can be an option. > > You should be able to easily enter the Python repl, though offhand I > don't know how. I thought it was easy to get the actual repl... but it isn't. There is a C function for it, but not a Python method. However, there's a very good simulacrum: py import code py code.InteractiveConsole().interact() Send EOF to exit. I don't know if it has completion or automatic indentation, because no version of Python I have installed does either :-) Is this new? -- Daniel Jacobowitz CodeSourcery