Author stefan
Recipients stefan
Date 2020-04-10.22:33:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586558028.61.0.331520667517.issue40249@roundup.psfhosted.org>
In-reply-to
Content
I'm trying to import custom scripts that expect the presence of certain variables in the global namespace.
It seems `__import__('script', globals=dict(foo='bar'))` doesn't have the expected effect of injecting "foo" into the namespace and making it accessible to the script being loaded.

Is this a bug in `__import__` or am I missing something ? If the behaviour is expected, how can I achieve the desired behaviour ?
History
Date User Action Args
2020-04-10 22:33:48stefansetrecipients: + stefan
2020-04-10 22:33:48stefansetmessageid: <1586558028.61.0.331520667517.issue40249@roundup.psfhosted.org>
2020-04-10 22:33:48stefanlinkissue40249 messages
2020-04-10 22:33:48stefancreate