[Python-checkins] python/nondist/sandbox/datetime obj_datetime.c,1.36,1.37
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sat, 07 Dec 2002 13:18:40 -0800
- Previous message: [Python-checkins] python/nondist/sandbox/datetime datetime.py,1.81,1.82 doc.txt,1.28,1.29 obj_datetime.c,1.35,1.36 test_both.py,1.53,1.54 test_datetime.py,1.57,1.58
- Next message: [Python-checkins] python/dist/src/Objects typeobject.c,2.195,2.196
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv9948
Modified Files:
obj_datetime.c
Log Message:
More typecode fiddling.
BTW, the Python implementation shows leaks again! 11 references per test
cycle. The C implementation does not show leaks.
Index: obj_datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_datetime.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** obj_datetime.c 7 Dec 2002 21:06:38 -0000 1.36
--- obj_datetime.c 7 Dec 2002 21:18:38 -0000 1.37
***************
*** 114,118 ****
tm = f(&timet);
if (tm)
! result = PyObject_CallFunction(cls, "lllllll",
tm->tm_year + 1900,
tm->tm_mon + 1,
--- 114,118 ----
tm = f(&timet);
if (tm)
! result = PyObject_CallFunction(cls, "iiiiiil",
tm->tm_year + 1900,
tm->tm_mon + 1,
***************
*** 191,195 ****
tm = localtime(&timet);
! return PyObject_CallFunction(cls, "llllll",
tm->tm_year + 1900, tm->tm_mon + 1,
tm->tm_mday, tm->tm_hour, tm->tm_min,
--- 191,195 ----
tm = localtime(&timet);
! return PyObject_CallFunction(cls, "iiiiii",
tm->tm_year + 1900, tm->tm_mon + 1,
tm->tm_mday, tm->tm_hour, tm->tm_min,
***************
*** 240,244 ****
tm = gmtime(&timet);
! return PyObject_CallFunction(cls, "llllll",
tm->tm_year + 1900, tm->tm_mon + 1,
tm->tm_mday, tm->tm_hour, tm->tm_min,
--- 240,244 ----
tm = gmtime(&timet);
! return PyObject_CallFunction(cls, "iiiiii",
tm->tm_year + 1900, tm->tm_mon + 1,
tm->tm_mday, tm->tm_hour, tm->tm_min,
- Previous message: [Python-checkins] python/nondist/sandbox/datetime datetime.py,1.81,1.82 doc.txt,1.28,1.29 obj_datetime.c,1.35,1.36 test_both.py,1.53,1.54 test_datetime.py,1.57,1.58
- Next message: [Python-checkins] python/dist/src/Objects typeobject.c,2.195,2.196
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]