What is the difference between builtins namespace and namespace of the module builtins. I was under the impression they are the same thing. Here is a paragraph from python doc 4.2.2. Resolution of Names that appears to imply they are different.
If the global statement occurs within a block, all uses of the names specified in the statement refer to the bindings of those names in the top-level namespace. Names are resolved in the top-level namespace by searching the global namespace, i.e. the namespace of the module containing the code block, and the builtins namespace, the namespace of the module builtins.
This is what’s known grammatically as an appositive; the two pairs “the global namespace” // “the namespace of the module containing the code block” and “the builtins namespace” // “the namespace of the module builtins” are each giving two wordings that describe the same entity.