[Zope] Zope and Polymorphism
   
    Jonothan Farr
     
    jfarr@real.com
       
    Thu, 10 Feb 2000 15:07:20 -0800
    
    
  
> Isn't there some method like
> _.inheritsfrom(_['sequence-item'],'Folder')
There's issubclass() in Python. Is this what you're looking for?
issubclass (class1, class2)
     Return true if class1 is a subclass (direct or indirect) of class2. A
class is considered a subclass of itself. If either argument is not a class
object, a TypeError exception is raised.
-jfarr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~