[Lldb-commits] [lldb] [SBProgress] Add swig support for `with` statement in Python (PR #133527)

Jacob Lalonde via lldb-commits lldb-commits at lists.llvm.org
Sat Mar 29 14:37:27 PDT 2025


Jlalond wrote:

> Nice improvement!
> 
> Not sure how hard it would be to extend this even more, but Python's [rich](https://rich.readthedocs.io/en/stable/progress.html) package has a progress bar that allows you to write:
> 
> ```
> for i in track(range(20), description="Processing..."):
>     time.sleep(1)  # Simulate work being done
> ```
> 
> It would be cool if we could add an extension so you could write the same thing with LLDB's progress:
> 
> ```
> for i in lldb.Progress.track(range(20), description="Processing..."):
>     time.sleep(1)  # Simulate work being done
> ```

@aperez Thoughts on this? I think this could be useful

https://github.com/llvm/llvm-project/pull/133527


More information about the lldb-commits mailing list