comparison Python/pythonrun.c @ 34972:1dd8a0d64432 legacy-trunk

This is my patch: [ 1181301 ] make float packing copy bytes when they can which hasn't been reviewed, despite numerous threats to check it in anyway if noone reviews it. Please read the diff on the checkin list, at least! The basic idea is to examine the bytes of some 'probe values' to see if the current platform is a IEEE 754-ish platform, and if so _PyFloat_{Pack,Unpack}{4,8} just copy bytes around. The rest is hair for testing, and tests.
author Michael W. Hudson <mwh@python.net>
date Fri, 27 May 2005 15:23:20 +0000
parents 7cfda9898863
children 26bf6c27e9ce
comparison
equal deleted inserted replaced
34971:0905812df4a5 34972:1dd8a0d64432
169 if (!_PyFrame_Init()) 169 if (!_PyFrame_Init())
170 Py_FatalError("Py_Initialize: can't init frames"); 170 Py_FatalError("Py_Initialize: can't init frames");
171 171
172 if (!_PyInt_Init()) 172 if (!_PyInt_Init())
173 Py_FatalError("Py_Initialize: can't init ints"); 173 Py_FatalError("Py_Initialize: can't init ints");
174
175 _PyFloat_Init();
174 176
175 interp->modules = PyDict_New(); 177 interp->modules = PyDict_New();
176 if (interp->modules == NULL) 178 if (interp->modules == NULL)
177 Py_FatalError("Py_Initialize: can't make modules dictionary"); 179 Py_FatalError("Py_Initialize: can't make modules dictionary");
178 180