[Lldb-commits] [PATCH] D127458: [lldb][bindings] Implement __repr__ instead of __str__

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 10 09:11:12 PDT 2022


kastiglione added a comment.

@mib I tried but failed to answer that in the original commit description. I have reworded it to be more clear. Here's the relevant paragraph:

> For convenience, this change switches all SB classes that implement to
> `__str__` to instead implement `__repr__`. **The result is that `str()` and
> `repr` will produce the same output**. This is because `str` calls `__repr__`
> for classes that have  no `__str__` method.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127458/new/

https://reviews.llvm.org/D127458



More information about the lldb-commits mailing list