<div dir='auto'>On Apr 12, 2026 14:27, Hal Murray via devel <devel@ntpsec.org> wrote:<br>If I have the text form of a variable name, how to I turn that info a name<br>for the python compiler?  That is if I have:<br>  foo = "mumble"<br>how do I do?<br>  if xx.mumble:  ...<br><br>Generally, I'd say use get(for dict-like) or getattr(for classes) probably in conjunction with locals() or globals().<br>I will let you look up specifics, as I don't recall. <br></div>