Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 13977:eb9a36163a9e legacy-trunk
Guido pointed out that all names in the sys module have no underscore,
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 15 Aug 2000 04:24:43 +0000 |
| parents | aa4202702252 |
| children | 128f641191c3 |
line wrap: on
line diff
--- a/Python/sysmodule.c Tue Aug 15 03:34:48 2000 +0000 +++ b/Python/sysmodule.c Tue Aug 15 04:24:43 2000 +0000 @@ -461,14 +461,15 @@ /* Assumes that longs are at least 2 bytes long. Should be safe! */ unsigned long number = 1; + char *value; s = (char *) &number; if (s[0] == 0) - PyDict_SetItemString(sysdict, "byte_order", - PyString_FromString("big")); + value = "big"; else - PyDict_SetItemString(sysdict, "byte_order", - PyString_FromString("little")); + value = "little"; + PyDict_SetItemString(sysdict, "byteorder", + PyString_FromString(value)); } #ifdef MS_COREDLL PyDict_SetItemString(sysdict, "dllhandle",
