Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 40978:61fee1853ca8
SF patch #1669633, add methods for bytes from Pete Shinners.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 27 Feb 2007 19:02:19 +0000 |
| parents | e759fd8d95ae |
| children | f29f1a8b7869 |
comparison
equal
deleted
inserted
replaced
| 40977:4a4f6f026f1c | 40978:61fee1853ca8 |
|---|---|
| 183 if (!_PyFrame_Init()) | 183 if (!_PyFrame_Init()) |
| 184 Py_FatalError("Py_Initialize: can't init frames"); | 184 Py_FatalError("Py_Initialize: can't init frames"); |
| 185 | 185 |
| 186 if (!_PyLong_Init()) | 186 if (!_PyLong_Init()) |
| 187 Py_FatalError("Py_Initialize: can't init longs"); | 187 Py_FatalError("Py_Initialize: can't init longs"); |
| 188 | |
| 189 if (!PyBytes_Init()) | |
| 190 Py_FatalError("Py_Initialize: can't init bytes"); | |
| 188 | 191 |
| 189 _PyFloat_Init(); | 192 _PyFloat_Init(); |
| 190 | 193 |
| 191 interp->modules = PyDict_New(); | 194 interp->modules = PyDict_New(); |
| 192 if (interp->modules == NULL) | 195 if (interp->modules == NULL) |
| 455 PyCFunction_Fini(); | 458 PyCFunction_Fini(); |
| 456 PyTuple_Fini(); | 459 PyTuple_Fini(); |
| 457 PyList_Fini(); | 460 PyList_Fini(); |
| 458 PySet_Fini(); | 461 PySet_Fini(); |
| 459 PyString_Fini(); | 462 PyString_Fini(); |
| 463 PyBytes_Fini(); | |
| 460 PyLong_Fini(); | 464 PyLong_Fini(); |
| 461 PyFloat_Fini(); | 465 PyFloat_Fini(); |
| 462 | 466 |
| 463 #ifdef Py_USING_UNICODE | 467 #ifdef Py_USING_UNICODE |
| 464 /* Cleanup Unicode implementation */ | 468 /* Cleanup Unicode implementation */ |
