On Thu, Nov 16, 2006 at 10:24:23AM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "José" == José Matos <[EMAIL PROTECTED]> writes: > > José> On Thursday 16 November 2006 8:20 am, Jean-Marc Lasgouttes > José> wrote: > >> I think so, although I'd rather have some input from some people > >> who know python (josé?) > > José> The code is simple, clean and as matter of faith I would even > José> say that it works. ;-) > > Thanks :) Enrico, please apply.
I think I'll apply the new version as, quoting the python docs: When a global name is not found in the global namespace, it is searched in the built-in namespace (which is actually the global namespace of the module __builtin__ . The built-in namespace associated with the execution of a code block is actually found by looking up the name __builtins__ in its global namespace; this should be a dictionary or a module (in the latter case its dictionary is used). Normally, the __builtins__ namespace is the dictionary of the built-in module __builtin__ (note: no `s'); if it isn't, restricted execution mode is in effect. -- Enrico