I checked TextIOWrapper source code and confirmed that it doesn't call encoder.write(text, finish=True) on close. Since TextIOWrapper allows random access, it is difficult to call it automatically. So please think it as just limitation rather than bug. Please use codec and binary file manually for now. -- https://mail.python.org/mailman/listinfo/python-list
- Bug in io.TextIOWrapper? Jon Ribbens via Python-list
- Re: Bug in io.TextIOWrapper? Inada Naoki via Python-list
- Re: Bug in io.TextIOWrapper? Peter J. Holzer via Python-list
- Re: Bug in io.TextIOWrapper? Inada Naoki via Python-list
- Re: Bug in io.TextIOWrapp... Inada Naoki via Python-list
- Re: Bug in io.TextIO... Jon Ribbens via Python-list