Message129954
I didn't even know that Windows had such calls.
But anyway, if we start releasing the GIL around each malloc call, then it's going to get really complicated:
static PyObject *
posix_geteuid(PyObject *self, PyObject *noargs)
{
return PyLong_FromLong((long)geteuid());
}
PyLong_FromLong -> _PyLong_New -> PyObject_MALLOC which can call malloc.
As for DuplicateHandle, I assume it's as fast as Unix's dup(2). |
|
Date |
User |
Action |
Args |
2011-03-03 11:25:10 | neologix | set | recipients:
+ neologix, amaury.forgeotdarc, pitrou, eric.smith |
2011-03-03 11:25:10 | neologix | set | messageid: <1299151510.35.0.785537757742.issue11382@psf.upfronthosting.co.za> |
2011-03-03 11:25:08 | neologix | link | issue11382 messages |
2011-03-03 11:25:08 | neologix | create | |
|