I don't think this comment is applicable.
The libstdc++ pretty-printers use gdb.Value.lazy_string, not the
built-in Python types.
Samuel Hmm, doesn't that just make it a timebomb -- a value that will
Samuel explode if, at some point in the future, someone tries to treat
Samuel it as a string?
Tom Tromey tro...@redhat.com writes:
Samuel == Samuel Bronson naes...@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
Samuel == Samuel Bronson naes...@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 +#
On 10/07/14 22:48 -0400, Samuel Bronson wrote:
PR libstdc++/58962
* python/libstdcxx/v6/printers.py: Port to Python 2+3
(imap): New compat function.
(izip): Likewise.
(Iterator): New mixin to allow writing iterators in Python 3 style
Loosely based on Matthias Klose's earlier patch
http://patchwork.ozlabs.org/patch/287368/.
This time with his name spelled correctly; sorry about that!
Tested with:
$ make check-target-libstdc++-v3 RUNTESTFLAGS='--directory
libstdc++-prettyprinters'
libstdc++-v3/
PR libstdc++/58962