__builtins__ thread-safe / __builtins__ as function?

2012-10-11 Thread Juergen Bartholomae
ay to add any methods here) I could do it if there was any way to load .py-files as any other class than , maybe as a subclass, but I do not know how this could be done. So, I am really at a loss here. Any help would be greatly appreciated. Regards, Juergen Bartholomae -- http://mail.python.org/mai

Re: __builtins__ thread-safe / __builtins__ as function?

2012-10-14 Thread Juergen Bartholomae
>> One possible solution is to somehow redirect every __builtins__ to a >> function that returns a different __builtins__ dictionary for each thread >> (such a function already exists). >How exactly does the code reference it? If they're simply referring to >the name __builtins__ at module level,