design docs for file closing

This commit is contained in:
wiredfool 2016-11-14 07:26:52 -08:00
parent 1fcde0bd9f
commit cf85e8f1c7

View File

@ -64,7 +64,8 @@ Image Lifecycle
* ``Image.Image.seek()`` in the case of multi-frame images
(e.g. multipage TIFF and animated GIF) the image file left open so
that seek can load the appropriate frame. When the last frame is
read, the image file is closed, and no more seeks can occur.
read, the image file is closed (at least in some image plugins), and
no more seeks can occur.
* ``Image.Image.close()`` Closes the file pointer and destroys the
core image object. This is used in the Pillow context manager