diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-27 19:02:19 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-02-27 19:02:19 (GMT) |
commit | 6968b056efdec8cf178901cf5bfcf65e1c8eac65 (patch) | |
tree | 86ec30b563f2a5d05d2e9cb9eb83f509853f1670 /Python | |
parent | fa04e1a090b94a30d905184aab26e346b8549b6c (diff) | |
download | cpython-6968b056efdec8cf178901cf5bfcf65e1c8eac65.zip cpython-6968b056efdec8cf178901cf5bfcf65e1c8eac65.tar.gz cpython-6968b056efdec8cf178901cf5bfcf65e1c8eac65.tar.bz2 |
SF patch #1669633, add methods for bytes from Pete Shinners.
Diffstat (limited to 'Python')
-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 7501456..d60ca9e 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(); |