16 Jul
2020
16 Jul
'20
3:52 p.m.
On Thu, Jul 16, 2020 at 08:18 Patrick Arminio
On Thu, 16 Jul 2020 at 15:58, Guido van Rossum
wrote: That’s probably best. I have seen ‘global SomeClass’ used in tests as a hack, too.
Thank you both. So the importlib "hack" is a good way to fetch the global scope of the module, right?
Sure. Though sys.modules should also work.
-- --Guido (mobile)