News for hackers. Stuff that matters.
Re:Show HN: Wat – Deep inspection of Python objects by skitter on Thursday July 25, 2024 @08:07PM (#41074753)
Afaik the import sets the module in the importing module's context only after the code in the imported module is run.

Edit: Oh, you don't mean in the importing module's globals, you mean `sys.modules`. Yeah that works!

Re:Show HN: Wat – Deep inspection of Python objects by Rhapso on Thursday July 25, 2024 @08:41PM (#41074936)
actually, no you were right about what I meant but i'll claim credit for helping you realize there was a better way XD