You’re right. This module name has been fixed in the 3.x branch (it used a magic name without reason); when importlib was backported from 3.1 to 2.6, this change must have been overlooked. Are you willing to produce a patch? Regards
Would it make sense to put a "New in version 3.1" at the top of this page: http://docs.python.org/py3k/library/builtins.html (perhaps also with a note explaining that the module replaces __builtin__). I actually wasn't able to confirm when "builtins" was introduced by searching Google and What's New, etc. That's why I appreciated Eric's note.
> (perhaps also with a note explaining that the module replaces __builtin__) People used to 2.x will know about the name change; people new to Python with 3.x (the happy ones!) will not this this information, except perhaps to understand outdated docs or snippets. Hm. A short note would be helpful, I agree. > I actually wasn't able to confirm when "builtins" was introduced by > searching Google and What's New, http://docs.python.org/py3k/whatsnew/3.0.html#library-changes Regards
Thanks, fixed in r80082. The builtins rename happened in 3.0; there are no "version added" or "version changed" marks for 3.0 in the docs, since we regard it as a "clean start".
History
Date
User
Action
Args
2022-04-11 14:56:59
admin
set
github: 52617
2010-04-14 21:37:39
georg.brandl
set
status: open -> closedresolution: fixedmessages: +