[Image-SIG] Re: I think I found a bug ...
Fredrik Lundh
fredrik at pythonware.com
Mon Jul 5 08:56:31 CEST 2004
Pascal Ströing wrote:
> script:
> >>> from Image import *
> >>> f=open("mTemp.py","w")
>
> You see I use a PIL-independent python-function but PIL try to interpret it.
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.3/site-packages/PIL/Image.py", line 1538, in
> open
> raise ValueError("bad mode")
> ValueError: bad mode
yes, that's a bug in your program. DO NOT use "from import *" if you
don't understand how it works:
http://effbot.org/zone/import-confusion.htm
</F>
More information about the Image-SIG
mailing list