[Image-SIG] PIL 1.0b1

Steve Purcell steve@websentric.com
Mon, 19 Apr 1999 07:14:09 +0000


Piers Lauder wrote:
> 
> There is an error in the definition of "new" in Image.py
> the distributed version has
>         def new(mode, size, color = 0):
>             "Create a new image"
> 
>             if color is None:
> 
> it should be:
>         def new(mode, size, color = None):

No it shouldn't.  '0' is the RGB for black, which the documentation
states is the default fill.colour for new images. 'None' means don't
initialise the image, which sounds like asking for trouble.  :-)

--
Steve Purcell             |  Stunt Programmer &
WebSentric Software GmbH  |  Chief Mad Scientist