
Oct. 31, 2001
8:14 p.m.
[Jack Jansen]
- Python code can pass a new "t" mode parameter to open() which reads files with any newline convention. "t" cannot be combined with any other mode flags like "w" or "+", for obvious reasons.
[/F]
so "t" can be both a mode (like "r" and "w") and a mode modifier (like "t" and "b")? could be confusing.
Well, the "t" modifier isn't std; does anyone other than Microsoft support it? MS also gives meaning to non-std "c" and "n" modifiers. Luckily, Python doesn't define which modes or modifiers it accepts <wink>.