New submission from Sebastian Kreft:

Although it is already explained that the default mode of the opened tempfiles 
is 'w+b' a warning/notice section should be included to make it clearer.

I think this is important as the default for the open function is to return 
strings and not bytes.

I just had to debug an error with traceback, as traceback.print_exc expects a 
file capable of handling unicode.

----------
assignee: docs@python
components: Documentation
messages: 219585
nosy: Sebastian.Kreft.Deezer, docs@python
priority: normal
severity: normal
status: open
title: Add a warning section exaplaining that tempfiles are opened in binary 
mode
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21637>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to