classification
Title: '_io.TextIOWrapper' object has no attribute 'mode'
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8, Python 3.7
process
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 gzip.open() or bz2.open() do not have the 'mode' data member. Those returned by io.open() 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 ]".
History
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