diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-27 19:02:19 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-27 19:02:19 +0000 |
commit | f5739995636a4d75fefb4520b879f08532898397 (patch) | |
tree | 64bb9082264c901fcb06b21c6bc03f64fd85cf2f /Python/pythonrun.c | |
parent | ab9c2398583b43c6a9f27671e7a29a9d7a3f0e4b (diff) | |
download | cpython-f5739995636a4d75fefb4520b879f08532898397.tar.gz |
SF patch #1669633, add methods for bytes from Pete Shinners.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 7501456ca8..d60ca9e79b 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -186,6 +186,9 @@ Py_InitializeEx(int install_sigs) if (!_PyLong_Init()) Py_FatalError("Py_Initialize: can't init longs"); + if (!PyBytes_Init()) + Py_FatalError("Py_Initialize: can't init bytes"); + _PyFloat_Init(); interp->modules = PyDict_New(); @@ -457,6 +460,7 @@ Py_Finalize(void) PyList_Fini(); PySet_Fini(); PyString_Fini(); + PyBytes_Fini(); PyLong_Fini(); PyFloat_Fini(); |