[issue25341] File mode wb+ appears as rb+

2021-11-26 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue25341] File mode wb+ appears as rb+

2016-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > But this behaviour treating wb+ and rb+ as the same is well tested and seems to intended to do so. I think this is not intended behavior. Tests just test that the current behavior is not changed accidentally. If I'm right, the patch LGTM. But since

[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___

[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Xiang Zhang
Xiang Zhang added the comment: I think Mark is right. Since wb+ and rb+ have different behaviours they should be treat separately. But this behaviour treating wb+ and rb+ as the same is well tested and seems to intended to do so. -- nosy: +xiang.zhang

[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Mark Williams
Mark Williams added the comment: Python's test suite may test the current behavior but that does not lessen the problem. I gave an example of apparently correct code that fails (that was actually encountered by a Python user) in my original description. Another such example: you cannot

[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Xiang Zhang
Changes by Xiang Zhang <18518281...@126.com>: -- keywords: +patch Added file: http://bugs.python.org/file40739/file_mode.patch ___ Python tracker ___

[issue25341] File mode wb+ appears as rb+

2015-10-10 Thread Xiang Zhang
Xiang Zhang added the comment: I make a patch which now identifies the difference between wb+ and rb+, and modifies the corresponding tests. Though I don't know whether this need to be fixed. -- ___ Python tracker

[issue25341] File mode wb+ appears as rb+

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson, pitrou, stutzbach ___ Python tracker ___

[issue25341] File mode wb+ appears as rb+

2015-10-08 Thread Mahmoud Hashemi
Changes by Mahmoud Hashemi : -- nosy: +mahmoud ___ Python tracker ___ ___

[issue25341] File mode wb+ appears as rb+

2015-10-08 Thread Mark Williams
New submission from Mark Williams: There is at least one mode in which a file can be opened that cannot be represented in its mode attribute: wb+. This mode instead appears as 'rb+' in the mode attribute: Python 3.5.0 (default, Oct 3 2015, 10:40:38) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1