[New-bugs-announce] [issue22078] io.BufferedReader hides ResourceWarnings when garbage collected

Claudiu Popa report at bugs.python.org
Sat Jul 26 13:20:54 CEST 2014


New submission from Claudiu Popa:

Given the following example, Python 3.5 doesn't emit any resource warning:

import io, gc
f = open("a")
bufio = io.BufferedReader(f)
gc.collect()


Here's a small patch that enables this.

----------
components: IO
files: buffered_io_resource_warning.patch
keywords: patch
messages: 224040
nosy: Claudiu.Popa
priority: normal
severity: normal
status: open
title: io.BufferedReader hides ResourceWarnings when garbage collected
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file36107/buffered_io_resource_warning.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22078>
_______________________________________


More information about the New-bugs-announce mailing list