Guido van Rossum
9b76da6a8f
Checkpoint so I can continue to work on this at a different box.
...
There is somewhat working (but slow) code supporting seek/tell for text files,
but extensive testing exposes a bug I can't nail down.
2007-04-11 01:09:03 +00:00
Guido van Rossum
8742977b33
truncate() returns the new size and position.
...
write() returns the number of bytes/characters written/buffered.
FileIO.close() calls self.flush().
Implement readinto() for buffered readers.
Tests th check all these.
Test proper behavior of __enter__/__exit__.
2007-04-10 21:06:59 +00:00
Guido van Rossum
34d69e57e3
Skip large file tests on Windowns and OSX.
...
Reduce large file size to 2**31 (and a bit).
2007-04-10 20:08:41 +00:00
Guido van Rossum
53807dabf0
Implement long positioning (Unix only, probably).
...
Etc., etc.
2007-04-10 19:01:47 +00:00
Guido van Rossum
141f767d46
More cleanup. Renamed BlockingIO to BlockingIOError.
...
Removed unused _PyFileIO class.
Changed inheritance structure.
TODO: do the same kinds of things to TextIO.
2007-04-10 00:22:16 +00:00
Guido van Rossum
76c5d4d72d
Checkpoint.
...
Some cleanup of test_io.py and io.py.
Added seeking to buffered reader and writer, but no tests yet.
2007-04-06 19:10:29 +00:00
Guido van Rossum
78892e4613
Added a working Text I/O layer, by Mark Russell.
...
This is essentially a checkpoint.
2007-04-06 17:31:18 +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
Guido van Rossum
4d0f5a4934
Delete TESTFN after the test.
2007-03-07 22:59:39 +00:00
Guido van Rossum
00efeadbcf
Change the specs for readinto() -- it should *not* shorten the buffer to
...
the amount of data read.
2007-03-07 05:23:25 +00:00
Guido van Rossum
01a2752d19
New version from Mike Verdone (sat in my inbox since 2/27).
...
I cleaned up whitespace but otherwise didn't change it.
This will need work to reflect the tentative decision to drop nonblocking I/O
support from the buffering layers.
2007-03-07 01:00:12 +00:00
Guido van Rossum
68bbcd2a71
Mike Verdone's checkpoint, cleaned up.
...
Also implemented Neal's suggestion (add fileno() to SocketIO)
and some unrelated changes, e.g. remove Google copyright
and make BytesIO a subclass of BufferedIOBase.
2007-02-27 17:19:33 +00:00
Guido van Rossum
28524c7f10
Checkpoint for new I/O library.
2007-02-27 05:47:44 +00:00