From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28407 invoked by alias); 4 Feb 2009 19:45:57 -0000 Received: (qmail 28399 invoked by uid 22791); 4 Feb 2009 19:45:56 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Feb 2009 19:45:52 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n14JjadK032119; Wed, 4 Feb 2009 14:45:36 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n14Jjapr016369; Wed, 4 Feb 2009 14:45:36 -0500 Received: from opsy.redhat.com (vpn-14-42.rdu.redhat.com [10.11.14.42]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n14JjYxP026028; Wed, 4 Feb 2009 14:45:36 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 9EA4E3785DA; Wed, 4 Feb 2009 12:45:32 -0700 (MST) To: Eli Zaretskii Cc: Thiago Jung Bauermann , gdb-patches@sourceware.org Subject: Re: [RFA][python] Add gdb.Value.string method. References: <1230949647.8380.145.camel@localhost.localdomain> <1233669417.14735.14.camel@localhost.localdomain> From: Tom Tromey Reply-To: tromey@redhat.com Date: Wed, 04 Feb 2009 19:45:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Tue\, 03 Feb 2009 22\:02\:15 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-02/txt/msg00102.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: >> > +If the optional @var{encoding} argument is given, it must be a string >> > +naming the encoding of the string in the @code{gdb.Value}. Eli> Would every Python programmer know what kind of argument strings can Eli> be given for @var{encoding}? If not, perhaps a list or at least a Eli> hint where to find such a list would be useful. We can't list the possible encodings -- not only does the list change over time, but users can write their own codecs in Python. I suggest just hoisting the reference to Python's "string.decode" method to an earlier spot in the paragraph. This should be sufficient for anybody, use of the string module is common knowledge. Tom