Documentation? file/open with tea

Daniel Dittmar daniel at
Sun Sep 19 21:57:28 CEST 2004

exarkun at wrote:
> On Sun, 19 Sep 2004 11:40:37 -0800, "Eric Pederson" <whereU at> 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.


More information about the Python-list mailing list