[Python-checkins] CVS: python/dist/src/Python sysmodule.c,2.73,2.74
Fred L. Drake
python-dev@python.org
Mon, 14 Aug 2000 21:24:46 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Objects complexobject.c,2.29,2.30 floatobject.c,2.66,2.67 longobject.c,1.65,1.66 object.c,2.93,2.94
- Next message: [Python-checkins] CVS: python/dist/src/Doc/lib libsys.tex,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13031/Python
Modified Files:
sysmodule.c
Log Message:
Guido pointed out that all names in the sys module have no underscore,
Index: sysmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/sysmodule.c,v
retrieving revision 2.73
retrieving revision 2.74
diff -C2 -r2.73 -r2.74
*** sysmodule.c 2000/08/14 20:59:57 2.73
--- sysmodule.c 2000/08/15 04:24:43 2.74
***************
*** 462,473 ****
Should be safe! */
unsigned long number = 1;
s = (char *) &number;
if (s[0] == 0)
! PyDict_SetItemString(sysdict, "byte_order",
! PyString_FromString("big"));
else
! PyDict_SetItemString(sysdict, "byte_order",
! PyString_FromString("little"));
}
#ifdef MS_COREDLL
--- 462,474 ----
Should be safe! */
unsigned long number = 1;
+ char *value;
s = (char *) &number;
if (s[0] == 0)
! value = "big";
else
! value = "little";
! PyDict_SetItemString(sysdict, "byteorder",
! PyString_FromString(value));
}
#ifdef MS_COREDLL
- Previous message: [Python-checkins] CVS: python/dist/src/Objects complexobject.c,2.29,2.30 floatobject.c,2.66,2.67 longobject.c,1.65,1.66 object.c,2.93,2.94
- Next message: [Python-checkins] CVS: python/dist/src/Doc/lib libsys.tex,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]