Skip to content

Image.load() does not close file pointer #1144

@arve0

Description

@arve0

I'm doing this:

from PIL import Image
img = Image.open(path)
fp = img.fp
img.load()
fp.closed # False

Expected file pointer to be closed.

System:

  • Windows 7 64bit
  • Python 3.4.1
  • Pillow 2.7.0 (installed via conda)

Metadata

Metadata

Assignees

No one assigned

    Labels

    AnacondaIssues with Anaconda's PillowBugAny unexpected behavior, until confirmed feature.EnhancementFile Closing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions