From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21952 invoked by alias); 12 Jan 2012 17:28:01 -0000 Received: (qmail 21943 invoked by uid 22791); 12 Jan 2012 17:28:00 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,T_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; Thu, 12 Jan 2012 17:27:35 +0000 Received: by vcge1 with SMTP id e1so1812209vcg.0 for ; Thu, 12 Jan 2012 09:27:34 -0800 (PST) Received: by 10.220.151.5 with SMTP id a5mr1471545vcw.41.1326389254252; Thu, 12 Jan 2012 09:27:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.151.5 with SMTP id a5mr1471540vcw.41.1326389254116; Thu, 12 Jan 2012 09:27:34 -0800 (PST) Received: by 10.220.229.1 with HTTP; Thu, 12 Jan 2012 09:27:33 -0800 (PST) In-Reply-To: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> Date: Thu, 12 Jan 2012 17:30:00 -0000 Message-ID: Subject: Re: Make the "python" command resemble the standard Python interpreter From: Doug Evans To: Paul_Koning@dell.com Cc: khooyp@cs.umd.edu, 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/msg00414.txt.bz2 On Thu, Jan 12, 2012 at 8:52 AM, wrote: >>There already is an established behaviour for python without arguments (w= ith or without a terminal). >> >>(gdb) python >> > print 1 + 2 >> > end >>3 >>(gdb) >> >>I've read the thread and I don't seen anyone raising this issue (could ha= ve missed it though. =A0I saw Tom's message re: what output CLI will genera= te, but this is about behaviour). >>I've read the patch and I don't think using from_tty is ok to select betw= een the different behaviours. >> >>Can we pick a different way of invoking the python interpreter? > > But "python" seems rather an intuitive way of doing it. I COMPLETELY AGREE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!= !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! However, this changes things incompatibly ...