From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32417 invoked by alias); 21 Jul 2014 16:38:16 -0000 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 Received: (qmail 32352 invoked by uid 89); 21 Jul 2014 16:38:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=unavailable version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 21 Jul 2014 16:38:14 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6LGc8Hg008172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jul 2014 12:38:08 -0400 Received: from barimba (ovpn-113-27.phx2.redhat.com [10.3.113.27]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6LGc5cg029808 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 21 Jul 2014 12:38:06 -0400 From: Tom Tromey To: Samuel Bronson Cc: libstdc++@gcc.gnu.org, GCC Patches , Jonathan Wakely , GDB Patches , Matthias Klose Subject: Re: [PATCH v3 3/3] Port libstdc++ pretty-printers to Python 2 + Python 3 References: <1400701554-18062-1-git-send-email-naesten@gmail.com> <1405046899-32639-1-git-send-email-naesten@gmail.com> <1405046899-32639-4-git-send-email-naesten@gmail.com> <8761j4imol.fsf@naesten.mooo.com> Date: Mon, 21 Jul 2014 19:15:00 -0000 In-Reply-To: <8761j4imol.fsf@naesten.mooo.com> (Samuel Bronson's message of "Thu, 10 Jul 2014 22:48:19 -0400") Message-ID: <87tx6asm4y.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-07/txt/msg00544.txt.bz2 >>>>> "Samuel" == Samuel Bronson writes: Samuel> +# FIXME: The handling of e.g. std::basic_string (at least on char) Samuel> +# probably needs updating to work with Python 3's new string rules. Samuel> +# Samuel> +# In particular, Python 3 has a separate type (called byte) for Samuel> +# bytestrings, and a special b"" syntax for the byte literals; the old Samuel> +# str() type has been redefined to always store Unicode text. Samuel> +# Samuel> +# We probably can't do much about this until GDB get their act Samuel> +# together: I don't think this comment is applicable. The libstdc++ pretty-printers use gdb.Value.lazy_string, not the built-in Python types. Tom