Commit graph

56 commits

Author SHA1 Message Date
Guido van Rossum
6ef6306dd6 Oops, don't test for a name attribute here. That's a higher-level feature. 2007-04-13 19:02:54 +00:00
Guido van Rossum
13633bb8c5 Support name and mode attributes on all file types.
Don't read more than one line when reading text from a tty device.
Add peek() and read1() methods.
Return str instead of unicode when return ASCII characters in text mode.
2007-04-13 18:42:35 +00:00
Guido van Rossum
682faf8fe0 Fix most XXX remarks. 2007-04-12 14:56:58 +00:00
Guido van Rossum
31c3a57480 Test closed, mode attribute; don't test __exit__(). 2007-04-12 14:51:49 +00:00
Guido van Rossum
de3bc7c565 Fix embarrassing syntax mix. 2007-03-08 01:02:00 +00:00
Guido van Rossum
a9e2024b84 Check in Daniel Stutzbach's _fileio.c and test_fileio.py
(see SF#1671314) with small tweaks.
The io module now uses this instead of its own implementation
of the FileIO class, if it can import _fileio.
2007-03-08 00:43:48 +00:00