New submission from Antoine Pitrou <pit...@free.fr>: This really looks backwards:
>>> f = open("LICENSE", "rb") >>> f.name = "bar" Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: attribute 'name' of '_io.BufferedReader' objects is not writable >>> f.raw = None __main__:1: ResourceWarning: unclosed file <_io.FileIO name='LICENSE' mode='rb'> >>> ---------- components: IO, Library (Lib) messages: 124451 nosy: amaury.forgeotdarc, benjamin.peterson, pitrou priority: normal severity: normal stage: needs patch status: open title: "raw" attribute of buffered IO objects is assignable type: behavior versions: Python 2.7, Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10750> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com