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

Alexandre Perez via lldb-commits lldb-commits at lists.llvm.org
Sun Mar 30 10:48:03 PDT 2025


aperez wrote:

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

I think it could be useful as well. 

Couple things to note though:
- If you allow for both sequences and iterators as arguments into `lldb.Progress.track` you might not know the total number steps in advance.
- You'll need to handle the case when users exit the loop early, so that `Finalize()` is still called.

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


More information about the lldb-commits mailing list