From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23563 invoked by alias); 12 Jan 2012 17:48:14 -0000 Received: (qmail 23555 invoked by uid 22791); 12 Jan 2012 17:48:13 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausc60ps301.us.dell.com (HELO ausc60ps301.us.dell.com) (143.166.148.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 17:48:01 +0000 X-Loopcount0: from 10.170.28.39 From: To: CC: , Date: Thu, 12 Jan 2012 17:51:00 -0000 Subject: RE: Make the "python" command resemble the standard Python interpreter Message-ID: <09787EF419216C41A903FD14EE5506DD030F1EB49D@AUSX7MCPC103.AMER.DELL.COM> References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB45D@AUSX7MCPC103.AMER.DELL.COM> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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/msg00418.txt.bz2 >... >> - I may want a script that invokes python interactively. >> - How do I write a gdb macro that invokes the python repl? >> >> Solve those problems, and provide a migration path away from the old=20 >> behaviour, and then you've got something. > >As a strawman, a new command, python-foo, could be provided [python-code? = python-script?] that had the "old" behaviour. Nice solution. >As for migration, we *could* add python-foo as an alias for python to >7.4 (seems safe enough) and say the "python" command will change it's beha= viour in 7.5 (or some such). >Or we could just skip the first step and just say python will change incom= patibly in 7.5. >[I don't have a preference, but I think we need to start doing this kind o= f thing, and this would be good practice. :-)] I'd say one step not two, given that the population of users of the scenari= o you mentioned is likely to be tiny. paul