Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.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 | 110ff614ec28 |
| children | f324631462a2 |
line wrap: on
line diff
--- a/Python/sysmodule.c Sat Dec 01 15:42:08 2007 +0000 +++ b/Python/sysmodule.c Sun Dec 02 09:40:06 2007 +0000 @@ -72,10 +72,10 @@ PyObject *outf; PyInterpreterState *interp = PyThreadState_GET()->interp; PyObject *modules = interp->modules; - PyObject *builtins = PyDict_GetItemString(modules, "__builtin__"); + PyObject *builtins = PyDict_GetItemString(modules, "builtins"); if (builtins == NULL) { - PyErr_SetString(PyExc_RuntimeError, "lost __builtin__"); + PyErr_SetString(PyExc_RuntimeError, "lost builtins module"); return NULL; } @@ -106,7 +106,7 @@ PyDoc_STRVAR(displayhook_doc, "displayhook(object) -> None\n" "\n" -"Print an object to sys.stdout and also save it in __builtin__.\n" +"Print an object to sys.stdout and also save it in builtins.\n" ); static PyObject * @@ -896,7 +896,7 @@ \n\ Functions:\n\ \n\ -displayhook() -- print an object to the screen, and save it in __builtin__._\n\ +displayhook() -- print an object to the screen, and save it in builtins._\n\ excepthook() -- print an exception and its traceback to sys.stderr\n\ exc_info() -- return thread-safe information about the current exception\n\ exit() -- exit the interpreter by raising SystemExit\n\
