Merged revisions 71722 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71722 | benjamin.peterson | 2009-04-18 15:12:47 -0500 (Sat, 18 Apr 2009) | 1 line

  try to initalize all builtin types with PyType_Ready to avoid problems like #5787
........
This commit is contained in:
Benjamin Peterson 2009-04-18 20:54:08 +00:00
parent 332424777f
commit ae937c021d
4 changed files with 79 additions and 8 deletions

View file

@ -577,7 +577,9 @@ static PyObject *builtin_object;
int _PyFrame_Init()
{
builtin_object = PyUnicode_InternFromString("__builtins__");
return (builtin_object != NULL);
if (builtin_object == NULL)
return 0;
return 1;
}
PyFrameObject *