[Python-Dev] [poll] New name for builtins (original) (raw)

Ron Adam rrr at ronadam.com
Thu Nov 29 06:11:47 CET 2007


Fred Drake wrote:

On Nov 28, 2007, at 9:31 PM, Brett Cannon wrote:

+1 for either rootnamespace or root.

What is it with nutrient extractors for plants that makes sense here?

Root is a word that takes on a specific meaning depending on the context. Root as in tooth root, tree root, to root one self as in self defense, root of all evil, to root out. etc...

In the case of python and name spaces, the context of root would be suitably narrow so that the meaning would be clear and familiar with use.

Searching for "python root" would give good results as well.

In the case of a file or module name where it could be viewed out of context, it would be less suitable. I think builtin is fine for that. Or default_root, as in the default root module to be placed in the root name space.

Keeping root relatively short has the benefit of being able to easily use "root.name" in the case where "name" was/is used in the local scope. I don't see any reason to make it harder. There might even be a use case for using all explicit root references.

So +1 on root for me for a name space designator.

Regards, Ron

The goal is to make it blindingly obvious to someone reading code they didn't write (or even that they did) what's going on.

+1 for builtinnamespace.

-Fred



More information about the Python-Dev mailing list