From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15034 invoked by alias); 6 Feb 2012 20:59:31 -0000 Received: (qmail 15025 invoked by uid 22791); 6 Feb 2012 20:59:30 -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; Mon, 06 Feb 2012 20:59:17 +0000 X-Loopcount0: from 10.170.28.39 From: To: CC: , , Date: Mon, 06 Feb 2012 20:59:00 -0000 Subject: RE: Make the "python" command resemble the standard Python interpreter Message-ID: <09787EF419216C41A903FD14EE5506DD0310E29DCB@AUSX7MCPC103.AMER.DELL.COM> References: <09787EF419216C41A903FD14EE5506DD030F1EB39B@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD030F1EB45D@AUSX7MCPC103.AMER.DELL.COM> <09787EF419216C41A903FD14EE5506DD0310E29D2F@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-02/txt/msg00069.txt.bz2 I see what you mean. Thanks for the correction. paul -----Original Message----- From: Doug Evans [mailto:dje@google.com]=20 Sent: Monday, February 06, 2012 3:34 PM To: Koning, Paul Cc: khooyp@cs.umd.edu; tromey@redhat.com; gdb-patches@sourceware.org Subject: Re: Make the "python" command resemble the standard Python interpr= eter On Mon, Feb 6, 2012 at 12:13 PM, wrote: > End of block is defined by smaller indent. Here's a cut-n-paste of an experiment I just did. [dje@annie ~]$ python Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) [GCC 4.5.1 20100907 (Red Hat = 4.5.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for mo= re information. >>> if 0 =3D=3D 1: ... print "foo" ... print "bar" File "", line 3 print "bar" ^ SyntaxError: invalid syntax >>> In a script Python can see the change in indentation. I gather in interactive mode things work differently, otherwise how can I t= erminate the `if' without invoking something new. btw, "repl" =3D=3D "Read Eval Print Loop". http://en.wikipedia.org/wiki/REPL