[Python-checkins] python/dist/src/Misc NEWS,1.651,1.652

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Tue, 11 Feb 2003 19:33:01 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv27194

Modified Files:
	NEWS 
Log Message:
SF #532767: isinstance(x, X) should work when x is a proxy for an X
instance, as long as x.__class__ is X or a subclass thereof.
Did a little cleanup of PyObject_IsInstance() too.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.651
retrieving revision 1.652
diff -C2 -d -r1.651 -r1.652
*** NEWS	11 Feb 2003 20:39:59 -0000	1.651
--- NEWS	12 Feb 2003 03:32:58 -0000	1.652
***************
*** 13,16 ****
--- 13,21 ----
  -----------------
  
+ - isinstance(x, X): if X is a new-style class, this is now equivalent
+   to issubclass(type(x), X) or issubclass(x.__class__, X).  Previously
+   only type(x) was tested.  (For classic classes this was already the
+   case.)
+ 
  - compile(), eval() and the exec statement now fully support source code
    passed as unicode strings.