[Image-SIG] PIL 1.1.5 "stub" discovered
Christoph Rackwitz
christoph.rackwitz at gmail.com
Mon Nov 7 23:43:59 CET 2005
I was trying to .point() an "F"-type Image and got a traceback. A
little digging around revealed this:
>>> import Image
>>> im = Image.new("F", (100, 100))
>>> im = im.point(lambda v: v)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\python\Lib\site-packages\PIL\Image.py", line 1035, in point
scale, offset = _getscaleoffset(lut)
File "C:\python\Lib\site-packages\PIL\Image.py", line 360, in _getscaleoffset
(a, b, c) = data # simplified syntax
ValueError: need more than 1 value to unpack
>>> def dump(v, w):
... print repr(v); return w
...
>>> im.point(lambda v: dump(v.data, v))
['stub']
Traceback (most recent call last):...
I just wanted to hand you back your reminder ;)
More information about the Image-SIG
mailing list