SF patch #1669633, add methods for bytes from Pete Shinners.

This commit is contained in:
Neal Norwitz 2007-02-27 19:02:19 +00:00
parent fa04e1a090
commit 6968b056ef
4 changed files with 1730 additions and 23 deletions

View file

@ -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();