[Zope-dev] KeywordIndex and PersistentList (Bug?)

Steve Alexander steve@cat-box.net
Mon, 25 Nov 2002 17:42:15 +0000


Jeremy Hylton wrote:

> >>>>>"JPS" == Jeffrey P Shell  writes:
>
>
>   JPS> What about ``if callable(aq_base(newKeywords)):`` to remove
>   JPS> potential acquisition wrappers?
>
> callable() returns True for any instance.

Any instance of what?


[steve@localhost]$ python2.2
Python 2.2.2 (#1, Oct 31 2002, 10:45:23)
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-108.7.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> callable(object())
0
 >>> class Foo:
...   pass
...
 >>> callable(Foo())
0
 >>>


--
Steve Alexander