comparison Python/bltinmodule.c @ 41810:f9949b63eab3

Oops. unicode() builtin was still around.
author Guido van Rossum <guido@python.org>
date Tue, 22 May 2007 00:10:22 +0000
parents 6ea93700d779
children 24b60622b944
comparison
equal deleted inserted replaced
41809:8e062e572ea4 41810:f9949b63eab3
2054 SETBUILTIN("str", &PyUnicode_Type); 2054 SETBUILTIN("str", &PyUnicode_Type);
2055 SETBUILTIN("str8", &PyString_Type); 2055 SETBUILTIN("str8", &PyString_Type);
2056 SETBUILTIN("super", &PySuper_Type); 2056 SETBUILTIN("super", &PySuper_Type);
2057 SETBUILTIN("tuple", &PyTuple_Type); 2057 SETBUILTIN("tuple", &PyTuple_Type);
2058 SETBUILTIN("type", &PyType_Type); 2058 SETBUILTIN("type", &PyType_Type);
2059 SETBUILTIN("unicode", &PyUnicode_Type);
2060 debug = PyBool_FromLong(Py_OptimizeFlag == 0); 2059 debug = PyBool_FromLong(Py_OptimizeFlag == 0);
2061 if (PyDict_SetItemString(dict, "__debug__", debug) < 0) { 2060 if (PyDict_SetItemString(dict, "__debug__", debug) < 0) {
2062 Py_XDECREF(debug); 2061 Py_XDECREF(debug);
2063 return NULL; 2062 return NULL;
2064 } 2063 }