[Zope-dev] inheritedAttribute - super

2005-09-27 Thread Florent Guillaume
Is there any problem if I change current Zope 2 trunk uses of  
inheritedAttribute into calls to super ?


Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] inheritedAttribute

2000-08-28 Thread Steve Alexander

In the latest Zope source, I've noticed calls to inheritedAttribute in
the Python code.

I've found the C source code in ExtensionClass.c, but it doesn't help me
understand when I should use it from Python, and why.


*reads more source*

Ah! About 70 lines further on in ExtensionClass.c:

   "inheritedAttribute(class,name) -- Get an inherited attribute\n\n"
   "Get an attribute that would be inherited if the given (extension)\n"
   "class did not define it.  This method is used when overriding\n"
   "inherited methods.  It provides 2 advantages over accessing\n"
   "\n"
   "attributes directly through a superclass:\n"
   "\n"
   "1. The superclass need not be known,\n"
   "\n"
   "2. The superclass may be a Python class.  Without this method, it
would\n"
   "   be possible to override methods inherited from python classes
because\n"
   "   unbound methods gotten from Python classes cannot be called with
\n"
   "   extension class instances.  \n"


Is there some documentation of this on zope.org or dev.zope.org that
I've missed?

Thanks.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )