[Image-SIG] Re: pasting problem...

Bob Ippolito bob at redivi.com
Mon Sep 20 22:54:38 CEST 2004


On Sep 20, 2004, at 4:23 PM, <kevin at cazabon.com> <kevin at cazabon.com> 
wrote:

> id(type(im)): 504033904
> id(type(overlay)): 504033904
> id(type(mask)): 504033904
>
> ImagingCore)Traceback (most recent call last):
>   File "D:\Software\EditStation\ImageProcessingModules\addOverlay.py", 
> line
> 105, in main
>     im.paste(overlay, None, mask)
>   File "D:\Software\EDITST~1\PIL\Image.py", line 918, in paste
>     self.im.paste(im, box, mask.im)
> TypeError: argument 3 must be ImagingCore, not ImagingCore

Perhaps id(im.__class__), etc. would be more useful.  If those are 
instances of old style classes then type(inst) will be 
types.InstanceType regardless of which old style class it is.

-bob


More information about the Image-SIG mailing list