Movatterモバイル変換
[0]ホーム
[Python-Dev] [poll] New name for __builtins__
Christian Heimeslists at cheimes.de
Wed Nov 28 16:20:05 CET 2007
I'm sending this mail to Python-dev in the hope to reach more developers.GvR likes to rename the __builtin__ to reduce confusing between__builtin__ and __builtins__. He wanted to start a poll on the new namebut apparently he forgot.>Fromhttp://bugs.python.org/issue1498---Inhttp://bugs.python.org/issue1774369 I mentioned that I wanted torename __builtins__ to __rootns__. Though right now I think somethinglonger and less cryptic might be better. The reason is to avoid foronce and for all the confusion between __builtin__, which is a module,and __builtins__, a feature mainly used by sandboxing to pass the set ofbuiltins to be used via the global namespace. This lay at the heart ofthe referenced bug.I'm still in favor of this but haven't had the time to investigate howmuch work it would be.[...]OK, then we need to agree on a new name. I find __root__ too short,__rootns__ too cryptic, and __root_namespace__ too long. :-) What elsehave we got?---What name do you prefer? I'm +1 with Raymond on __root__ but I'm stillopen for better suggestions.Christian
More information about the Python-Devmailing list
[8]ページ先頭