Message 119406 - Python tracker (original) (raw)
But this is meant to be an optional warning; users will never see it. Me as a developer, I would like to know when I leave a file open as that is a waste of resources, plus with no guarantee of everything being flushed to disk.
Besides, the context manager for files makes the chance of leaving a file open a much more blaring mistake.