From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24203 invoked by alias); 12 Jan 2012 17:30:54 -0000 Received: (qmail 24191 invoked by uid 22791); 12 Jan 2012 17:30:51 -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 ausc60pc101.us.dell.com (HELO ausc60pc101.us.dell.com) (143.166.85.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 17:30:37 +0000 X-Loopcount0: from 10.170.28.39 From: To: CC: , Date: Thu, 12 Jan 2012 17:38:00 -0000 Subject: RE: Make the "python" command resemble the standard Python interpreter Message-ID: <09787EF419216C41A903FD14EE5506DD030F1EB45D@AUSX7MCPC103.AMER.DELL.COM> References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" 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/msg00415.txt.bz2 Yes, but I think the benefits outweigh the small imcompatibility. paul -----Original Message----- From: Doug Evans [mailto:dje@google.com]=20 Sent: Thursday, January 12, 2012 12:28 PM To: Koning, Paul Cc: khooyp@cs.umd.edu; gdb-patches@sourceware.org Subject: Re: Make the "python" command resemble the standard Python interpr= eter 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 ...