Title: '_io.TextIOWrapper' object has no attribute 'mode'
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8, Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: nemeskeyd, pitrou
Priority: normal Keywords:

Created on 2019-03-12 14:30 by nemeskeyd, last changed 2019-03-13 10:27 by SilentGhost.

Messages (2)
msg337745 - (view) Author: Dávid Nemeskey (nemeskeyd) Date: 2019-03-12 14:30
TextIOWrapper objects returned by or do not have the 'mode' data member. Those returned by do. It would be nice if it did.
msg337746 - (view) Author: Dávid Nemeskey (nemeskeyd) Date: 2019-03-12 14:35
Note that this is not the same as GZipFile.mode, which is 1 or 2 (READ or WRITE), instead of the more informative "[raw][bt ]".
Date User Action Args
2019-03-13 10:27:42SilentGhostsetnosy: + pitrou

type: behavior
versions: + Python 3.8, - Python 3.5
2019-03-12 14:35:59nemeskeydsetmessages: + msg337746
2019-03-12 14:30:43nemeskeydcreate