Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.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 | 8ed0280c2ab6 |
| children | f324631462a2 |
line wrap: on
line diff
--- a/Objects/typeobject.c Sat Dec 01 15:42:08 2007 +0000 +++ b/Objects/typeobject.c Sun Dec 02 09:40:06 2007 +0000 @@ -112,7 +112,7 @@ if (s != NULL) return PyUnicode_FromStringAndSize( type->tp_name, (Py_ssize_t)(s - type->tp_name)); - return PyUnicode_FromString("__builtin__"); + return PyUnicode_FromString("builtins"); } } @@ -397,7 +397,7 @@ else kind = "type"; - if (mod != NULL && PyUnicode_CompareWithASCIIString(mod, "__builtin__")) + if (mod != NULL && PyUnicode_CompareWithASCIIString(mod, "builtins")) rtn = PyUnicode_FromFormat("<%s '%U.%U'>", kind, mod, name); else rtn = PyUnicode_FromFormat("<%s '%s'>", kind, type->tp_name); @@ -2455,7 +2455,7 @@ name = type_name(type, NULL); if (name == NULL) return NULL; - if (mod != NULL && PyUnicode_CompareWithASCIIString(mod, "__builtin__")) + if (mod != NULL && PyUnicode_CompareWithASCIIString(mod, "builtins")) rtn = PyUnicode_FromFormat("<%U.%U object at %p>", mod, name, self); else rtn = PyUnicode_FromFormat("<%s object at %p>",
