Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

@Éric: I also noticed that your latest comment 

"All text is bytes, so we can do all I/O in bytes when writing resources and 
avoid special-casing."

contradicts your earlier position:

"I agree about the nonsense of opening in binary mode."

If using text mode, we might lose any specific encoding used for the source 
script unless we do encoding-detection as the interpreter does, and preserve 
that across the change-shebang-and-save. Using binary does avoid this, and 
should be doable with simpler code, so perhaps it is preferable - as long as we 
do it correctly so as to avoid the TypeError :-)

----------

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

Reply via email to