mib added inline comments.
================
Comment at: lldb/bindings/python/python-extensions.swig:528-533
+def find(pattern, flags=re.I):
+ """
+ Find matching SB methods/properties. See also Python's builtin `help()`.
+ """
+ import lldb
+ import re
----------------
kastiglione wrote:
> oh, I need to figure out the right way to manage imports in this swig
> extension. It seems that the `re` module is used (as a default argument)
> before importing it, and yet this code works.
Can't you just import it after the `%pythoncode %{` statement instead of doing
it in the function ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120292/new/
https://reviews.llvm.org/D120292
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits