[PEAK] ObjectWrapper subclasses always callable

Marcin Tustin marcin.tustin at gmail.com
Wed May 23 11:25:12 EDT 2012


Python 2.7.2

On Wed, May 23, 2012 at 4:23 PM, PJ Eby <pje at telecommunity.com> wrote:

>
> On May 23, 2012 10:39 AM, "Marcin Tustin" <marcin.tustin at gmail.com> wrote:
> >
> > I've found that instances of ObjectWrapper (and any subclasses) are
> always callable (the callable function returns True), notwithstanding that
> the __subject__ is not callable. Is there a way to remedy this?
> >
> > I've tried deleting the __call__ method, creating empty slots, creating
> my own call method, then trying to delete, using del or delattr on the
> subclass object, and creating a custom __getattribute__, all to no avail.
>
> Which Python version are you using?
>



-- 
Marcin Tustin
Tel: 07773 787 105
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20120523/565ed1a6/attachment.html


More information about the PEAK mailing list