Re: [PATCH v3 3/3] Port libstdc++ pretty-printers to Python 2 + Python 3

Tom Tromey
2014-07-21T16:38:16Z

>>>>> "Samuel" == Samuel Bronson <naesten@gmail.com> 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: <https://sourceware.org/bugzilla/show_bug.cgi?id=17138>

I don't think this comment is applicable.
The libstdc++ pretty-printers use gdb.Value.lazy_string, not the
built-in Python types.

Tom