[Lldb-commits] [lldb] [LLDB] Update Shell lit config to handle c8031c3dd743 (PR #170225)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 3 14:09:58 PST 2025
medismailben wrote:
> @bulbazord / @medismailben This fix wasn't quite right. Here's an example showing why:
>
> ```
> >>> test = b'xxx'
> >>> type(test)
> <class 'bytes'>
> >>> str(test)
> "b'xxx'"
> >>> test.decode()
> 'xxx'
> ```
>
> If you do `str()` on a bytes object you end up with `b'...'` in the string because of the object being a bytes object. You need to call `.decode()` on the bytes object to get the `str` representation.
Good catch, @felipepiovezan already reverted this and landed a proper fix 😅
https://github.com/llvm/llvm-project/pull/170225
More information about the lldb-commits
mailing list