[Python-Dev] Rename str/unicode to text

Michael Hudson mwh at python.net
Fri Feb 17 14:15:05 CET 2006

"Fredrik Lundh" <fredrik at pythonware.com> writes:

> Michael Hudson wrote:
>>  > OTOH, even if we didn't rename str/unicode to text, opentext would
>> > still be a good name for the function that opens a text file.
>> Hnnrgh, not really.  You're not opening a 'text', nor are you
>> constructing something that might reasonably be called an 'opentext'.
>> textfile() seems better.
> except that in Python, file is a type, and open is an action.

Well, yeah, but you can interpret each name in a sane way and try to
ignore the fact that they refer to the same object...

> but I agree that textfile reads better (haven't we been through this
> a couple of times already, btw?  iirc, my original textfile proposal was
> posted in 1846, or so)

Yes, that sounds about right.


  I'm sorry, was my bias showing again? :-)
                                      -- William Tanksley, 13 May 2000

More information about the Python-Dev mailing list