[Python-checkins] python/nondist/sandbox/datetime obj_timetz.c,1.22,1.23

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Fri, 13 Dec 2002 13:29:27 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv26361

Modified Files:
	obj_timetz.c 
Log Message:
Comments.


Index: obj_timetz.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_timetz.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** obj_timetz.c	13 Dec 2002 21:26:56 -0000	1.22
--- obj_timetz.c	13 Dec 2002 21:29:25 -0000	1.23
***************
*** 176,180 ****
   */
  
! /* Note:  tp_ricomparison is inherited from time. */
  
  static long
--- 176,180 ----
   */
  
! /* Note:  tp_richcompare is inherited from time. */
  
  static long
***************
*** 373,376 ****
--- 373,380 ----
  };
  
+ /* Note:  we don't inherit time_richcompare automatically, because we're
+  * overriding time's tp_hash.  That's why tp_richcompare is filled in
+  * here explicitly.
+  */
  statichere PyTypeObject PyDateTime_TimeTZType = {
  	PyObject_HEAD_INIT(NULL)