[Zope-dev] zope/python question
Steve Alexander
steve@cat-box.net
Wed, 24 Apr 2002 22:59:12 +0100
Dirk Datzert wrote:
> Hi,
>
> I saw in some products a __of__ operator and looked at the python.org
> for a documentation.
>
> I didn't found one.
>
> Can anybody tell me what the __of__ does ?
It creates an acquisition wrapper for the object the method belongs to,
in the context of the object you pass as the argument.
It is part of the Extension Class package.
> Or tell me a URL for the documentation of the __of__ operator ?
http://cvs.zope.org/~checkout~/Zope/lib/Components/ExtensionClass/doc/Acquisition.stx?rev=HEAD
http://cvs.zope.org/~checkout~/Zope/lib/Components/ExtensionClass/doc/ExtensionClass.stx?rev=HEAD
--
Steve Alexander