From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5087 invoked by alias); 28 Jul 2012 14:35:14 -0000 Received: (qmail 4948 invoked by uid 22791); 28 Jul 2012 14:35:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from server-nat-6.cs.umd.edu (HELO bacon.cs.umd.edu) (128.8.127.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 Jul 2012 14:34:55 +0000 Received: from [192.168.32.2] (pool-71-163-240-242.washdc.fios.verizon.net [71.163.240.242]) (Authenticated sender: khooyp) by bacon.cs.umd.edu (Postfix) with ESMTPSA id 5FF8CB4015E; Sat, 28 Jul 2012 10:34:53 -0400 (EDT) Subject: Re: [PATCH 1/4]: Make "python" start a standard Python prompt Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Khoo Yit Phang In-Reply-To: <83pq7gidg5.fsf@gnu.org> Date: Sat, 28 Jul 2012 14:35:00 -0000 Cc: Khoo Yit Phang , tromey@redhat.com, pmuldoon@redhat.com, gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Eli Zaretskii X-CSD-MailScanner-ID: 5FF8CB4015E.A14EA X-CSD-MailScanner: Found to be clean X-CSD-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=not spam, ALL_TRUSTED -50.00) X-CSD-MailScanner-From: khooyp@cs.umd.edu X-CSD-MailScanner-Watermark: 1344090893.56954@8AoV78KuW1lE3p7Wn9v2Lg 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/msg00721.txt.bz2 Hi, On Jul 28, 2012, at 2:53 AM, Eli Zaretskii wrote: >> From: Khoo Yit Phang >> Date: Thu, 26 Jul 2012 22:32:15 -0400 >> Cc: Eli Zaretskii , tromey@redhat.com, pmuldoon@redhat.com= , gdb-patches@sourceware.org >>=20 >> +@item python-interactive @r{[}@var{code}@r{]} >> +@itemx pi @r{[}@var{code}@r{]} >=20 > 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? >> +The @code{python-interactive} command can be used to start an >> +interactive Python prompt. >=20 > "Without an argument, the @code{python-interactive} command can be > used ..." >=20 >> +Alternatively, a single-line Python command can be given as an >> +argument, and if the command is an expression, the result will be >> +printed. >=20 > And if the command is not an expression, what happens then? +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. >> @item python @r{[}@var{code}@r{]} >> +@itemx py @r{[}@var{code}@r{]} >=20 > Again, I think "code" is not a good term here. Yit July 28, 2012