[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you, committed in r87427 (3.2), r87428 (3.1) and r87429 (2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Ah, I see. LGTM then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 21 décembre 2010 à 20:36 +, Benjamin Peterson a écrit : > Benjamin Peterson added the comment: > > 2010/12/21 Antoine Pitrou : > > > > Antoine Pitrou added the comment: > > > > Here is a patch. > > I assume you can put test_readonly_attributes i

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/12/21 Antoine Pitrou : > > Antoine Pitrou added the comment: > > Here is a patch. I assume you can put test_readonly_attributes in CommonBufferTests? -- ___ Python tracker

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file20132/io_roattrs.patch ___ Python tracker __

[issue10750] "raw" attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : This really looks backwards: >>> f = open("LICENSE", "rb") >>> f.name = "bar" Traceback (most recent call last): File "", line 1, in AttributeError: attribute 'name' of '_io.BufferedReader' objects is not writable >>> f.raw = None __main__:1: ResourceWarni