diff Python/bltinmodule.c @ 44098:0889daf6d0d9

#1535: rename __builtin__ module to builtins.
author Georg Brandl <georg@python.org>
date Sun, 02 Dec 2007 09:40:06 +0000
parents 00048fedbaa0
children f324631462a2
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Dec 01 15:42:08 2007 +0000
+++ b/Python/bltinmodule.c	Sun Dec 02 09:40:06 2007 +0000
@@ -1851,7 +1851,7 @@
 _PyBuiltin_Init(void)
 {
 	PyObject *mod, *dict, *debug;
-	mod = Py_InitModule4("__builtin__", builtin_methods,
+	mod = Py_InitModule4("builtins", builtin_methods,
 			     builtin_doc, (PyObject *)NULL,
 			     PYTHON_API_VERSION);
 	if (mod == NULL)
@@ -1859,7 +1859,7 @@
 	dict = PyModule_GetDict(mod);
 
 #ifdef Py_TRACE_REFS
-	/* __builtin__ exposes a number of statically allocated objects
+	/* "builtins" exposes a number of statically allocated objects
 	 * that, before this code was added in 2.3, never showed up in
 	 * the list of "all objects" maintained by Py_TRACE_REFS.  As a
 	 * result, programs leaking references to None and False (etc)