From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1614 invoked by alias); 28 Jul 2012 15:05:30 -0000 Received: (qmail 1600 invoked by uid 22791); 28 Jul 2012 15:05:28 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 Jul 2012 15:05:11 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M7V00L00LSBYE00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Sat, 28 Jul 2012 18:05:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7V00LQTLWLUA40@a-mtaout21.012.net.il>; Sat, 28 Jul 2012 18:05:09 +0300 (IDT) Date: Sat, 28 Jul 2012 15:05:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 1/4]: Make "python" start a standard Python prompt In-reply-to: To: Khoo Yit Phang Cc: khooyp@cs.umd.edu, tromey@redhat.com, pmuldoon@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <831ujwhqoh.fsf@gnu.org> References: <770F6E2B-70F5-4DF9-8E01-BD4F5FDC7AB1@cs.umd.edu> <500F95FB.5060904@redhat.com> <87zk6nizl6.fsf@fleche.redhat.com> <1C2FC4AD-E6FE-4857-9DE5-FDE5BE006E95@cs.umd.edu> <874novivob.fsf@fleche.redhat.com> <9DB9F174-129C-4C4A-9708-53A1D521251A@cs.umd.edu> <87mx2nhgch.fsf@fleche.redhat.com> <61B8FB86-D21F-4BA5-B86D-DF0ECF04C29D@cs.umd.edu> <87vchae842.fsf@fleche.redhat.com> <83mx2mjt2j.fsf@gnu.org> <6943FA37-9279-4213-95A6-7C6546A35BE3@cs.umd.edu> <17C09F4A-E788-4ABE-926E-7113ACB97651@cs.umd.edu> <83pq7gidg5.fsf@gnu.org> 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-07/txt/msg00722.txt.bz2 > From: Khoo Yit Phang > Date: Sat, 28 Jul 2012 10:34:52 -0400 > Cc: Khoo Yit Phang , > tromey@redhat.com, > pmuldoon@redhat.com, > gdb-patches@sourceware.org > > >> +@item python-interactive @r{[}@var{code}@r{]} > >> +@itemx pi @r{[}@var{code}@r{]} > > > > Why "code"? Elsewhere you used "command", which is better, IMO. > > I had just copied the doc for the old "python" command, which used "code". Shall I change it there too? Yes, please. > +Alternatively, a single-line Python command can be given as an > +argument and evaluated. If the command is an expression, the result > + will be printed; otherwise, nothing will be printed. This is good, but please leave two spaces after the period that ends the first of these two sentences. Thanks.