[Zope3-dev] Need help with JobBoardEx

Guido van Rossum guido@python.org
Wed, 07 Aug 2002 00:28:34 -0400


> If I were sure I would have checked it in. ;-) Yes, we share the
> same understanding of our goal, I think.  This is what my statement
> was based on: in Python (pre-alpha 2.3 from last week's CVS)
> interactive mode I created "class X: pass" and then asked for
> "X.__call__" and received an AttributeError.  So I said what I said.
> Looking at it again, I wonder if I that was a naive approach on my
> part; certainly if anyone would know, you would!  But that was my
> backup.

Quick: I think that's naive, since JobList derives from Persistent and
AFAIK that makes it a new-style class.  New-style classes *do* have a
__call__ attribute:

  >>> class X(object): pass

  >>> X.__call__
  <method-wrapper object at 0x401f49cc>
  >>> 

We may have to wait until Jim's back from vacation.

--Guido van Rossum (home page: http://www.python.org/~guido/)