[Lldb-commits] [lldb] [SBProgress] Add swig support for `with` statement in Python (PR #133527)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 29 12:24:34 PDT 2025
https://github.com/JDevlieghere approved this pull request.
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
```
https://github.com/llvm/llvm-project/pull/133527
More information about the lldb-commits
mailing list