[Python-checkins] python/nondist/sandbox/datetime obj_date.c,1.34,1.35 obj_datetime.c,1.26,1.27
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
2002年12月06日 09:21:45 -0800
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv21912
Modified Files:
obj_date.c obj_datetime.c
Log Message:
Added XXX comments about the METH_CLASS bug.
Index: obj_date.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_date.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** obj_date.c 6 Dec 2002 17:14:21 -0000 1.34
--- obj_date.c 6 Dec 2002 17:20:58 -0000 1.35
***************
*** 477,480 ****
--- 477,485 ----
static PyMethodDef date_methods[] = {
/* Class methods: */
+ /* XXX METH_CLASS is implemented incorrectly:
+ * XXX http://www.python.org/sf/548651
+ * XXX The signatures of these methods will need to change (for
+ * XXX the better) when that's fixed.
+ */
{"fromtimestamp", (PyCFunction)date_fromtimestamp, METH_VARARGS |
METH_CLASS,
Index: obj_datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_datetime.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** obj_datetime.c 6 Dec 2002 05:13:40 -0000 1.26
--- obj_datetime.c 6 Dec 2002 17:21:15 -0000 1.27
***************
*** 542,545 ****
--- 542,550 ----
static PyMethodDef datetime_methods[] = {
/* Class methods: */
+ /* XXX METH_CLASS is implemented incorrectly:
+ * XXX http://www.python.org/sf/548651
+ * XXX The signatures of these methods will need to change (for
+ * XXX the better) when that's fixed.
+ */
{"now", (PyCFunction)datetime_now,
METH_O | METH_CLASS,