[Python-Dev] Generalised String Coercion

Nick Coghlan ncoghlan at gmail.com
Tue Aug 9 11:28:01 CEST 2005

James Y Knight wrote:
> Hum, actually, it somewhat makes sense for the "open" builtin to  
> become what is now "codecs.open", for convenience's sake, although it  
> does blur the distinction between a byte stream and a character  
> stream somewhat. If that happens, I suppose it does actually make  
> sense to give "makefile" the same signature.

We could always give the text mode/binary mode distinction in "open" a real 
meaning - text mode deals with character sequences, binary mode deals with 
byte sequences.


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-Dev mailing list