[Python-checkins] CVS: python/dist/src PLAN.txt,1.1.2.2,1.1.2.3

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 30 Jun 2001 05:25:26 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv6612

Modified Files:
      Tag: descr-branch
	PLAN.txt 
Log Message:
Exaplin what's wrong with slot inheritance.


Index: PLAN.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/Attic/PLAN.txt,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** PLAN.txt	2001/06/29 21:06:16	1.1.2.2
--- PLAN.txt	2001/06/30 12:25:24	1.1.2.3
***************
*** 58,62 ****
  __dict__ (or __introduced__?) of all bases in __mro__ order.  (This is
  needed anyway to unify classes completely.)  *** Partly done.
! Inheritance of slots from bases is still icky.  ***
  
  Universal base class (object).  How can we make the object class
--- 58,65 ----
  __dict__ (or __introduced__?) of all bases in __mro__ order.  (This is
  needed anyway to unify classes completely.)  *** Partly done.
! Inheritance of slots from bases is still icky: (1) MRO is not always
! respected when inheriting slots; (2) dynamic classes can't add slot
! implementations in Python after creation (e.g., setting C.__hash__
! doesn't set the tp_hash slot).  ***
  
  Universal base class (object).  How can we make the object class