mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF patch #1669633, add methods for bytes from Pete Shinners.
This commit is contained in:
parent
fa04e1a090
commit
6968b056ef
4 changed files with 1730 additions and 23 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue