Python Imaging Library (PIL) question

Sid sidmitra85-del at yahoo.co.in
Tue Oct 21 07:06:23 EDT 2008


> The problem is likely to do with the line
> picMap = [[0] * width ] * height
>

yeah the problem was with that specific line. The snippet from your link
worked by
replacing the previous declaration by

picMap = [[0] * 3 for x in xrange(height)]

Thanks,
-Sid



More information about the Python-list mailing list