resize vs. thumbnail return values
effbot at telia.com
Thu May 18 18:56:41 CEST 2000
Dinu C. Gherman <gherman at darwin.in-berlin.de> wrote:
> I wonder what the reasoning is behind making a difference
> in the return value of Image.resize() and Image.thumbnail()?
> resize() returns self while thumbnail returns None.
the thumbnail modifies the image in place, while resize returns a
resized copy of the image, and leaves the original image intact.
why things are done this way is explained in the last section
in the tutorial:
<!-- (the eff-bot guide to) the standard python library:
More information about the Python-list