Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 13096:8c8de5b736dc legacy-trunk
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 28 Jun 2000 22:07:35 +0000 |
| parents | 04c89d77dfdb |
| children | 916fb024ce94 |
comparison
equal
deleted
inserted
replaced
| 13095:22309e957fa7 | 13096:8c8de5b736dc |
|---|---|
| 502 PyDict_SetItemString(sysdict, "builtin_module_names", | 502 PyDict_SetItemString(sysdict, "builtin_module_names", |
| 503 v = list_builtin_module_names()); | 503 v = list_builtin_module_names()); |
| 504 Py_XDECREF(v); | 504 Py_XDECREF(v); |
| 505 #ifdef MS_COREDLL | 505 #ifdef MS_COREDLL |
| 506 PyDict_SetItemString(sysdict, "dllhandle", | 506 PyDict_SetItemString(sysdict, "dllhandle", |
| 507 v = PyInt_FromLong((int)PyWin_DLLhModule)); | 507 v = PyLong_FromVoidPtr(PyWin_DLLhModule)); |
| 508 Py_XDECREF(v); | 508 Py_XDECREF(v); |
| 509 PyDict_SetItemString(sysdict, "winver", | 509 PyDict_SetItemString(sysdict, "winver", |
| 510 v = PyString_FromString(PyWin_DLLVersionString)); | 510 v = PyString_FromString(PyWin_DLLVersionString)); |
| 511 Py_XDECREF(v); | 511 Py_XDECREF(v); |
| 512 #endif | 512 #endif |
