[issue5860] TextIOWrapper: bad error reporting when write() is forbidden

2009-04-27 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Opening an existing file in read-only text mode and trying to write to it: f = open(LICENSE) f.write() Traceback (most recent call last): File stdin, line 1, in module SystemError: null argument to internal routine Binary files get it

[issue5860] TextIOWrapper: bad error reporting when write() is forbidden

2009-04-27 Thread DSM
DSM dsm...@users.sourceforge.net added the comment: See also http://bugs.python.org/issue5844 , which contains a patch to test. -- nosy: +dsm001 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5860

[issue5860] TextIOWrapper: bad error reporting when write() is forbidden

2009-04-27 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5860 ___