[PYTHON IMAGE-SIG] The Image.new() function doesn't initialize the new image

Fredrik Lundh fredrik_lundh@ivab.se
Fri, 17 Jan 1997 15:00:48 +0100


Fred writes:
> I have slightly mixed feelings on this one.  I like the idea of it
> being initialized to something known, but a new implementation of
> Image.new() can be provided by applications that want that
> interface.

I'm currently leaning towards the following solution:

	Image.new(mode, size) => black, as described in the handbook
	Image.new(mode, size, None) => uninitialized, for speed freaks :-)
	Image.new(mode, size, ink) => user-defined

I only need to change the default argument to make this work; it won't
surprise people (as the current implementation seems to do, even when
they haven't read the handbook), and it will not break any existing
code.

Cheers	/F

_______________
IMAGE-SIG - SIG on Image Processing with Python

send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
_______________