Documentation? file/open with tea
Daniel Dittmar
daniel at dittmar.net
Sun Sep 19 15:57:28 EDT 2004
exarkun at divmod.com wrote:
> On Sun, 19 Sep 2004 11:40:37 -0800, "Eric Pederson" <whereU at now.com> wrote:
>>f1=3Dopen(somefile, 'at')
>>f2=3Dopen(otherfile, 'rt')
>
> 't' is the opposite of 'b'. It's short for "text". It is also the default, so the above could be rewritten as open(somefile, 'a') or open(otherfile, 'r') with no change in meaning.
And I think using 't' is a mainly a Windows thing and not portable.
Daniel
More information about the Python-list
mailing list