Commit Graph

3 Commits

Author SHA1 Message Date
Guido van Rossum b04281592e Make it possible to instantiate a _FileIO() with an integer file descriptor
instead of a filename.
Add a 'closed' attribute.
2007-04-08 17:44:42 +00:00
Collin Winter af334387d1 Add a missing forward declaration for PyFileIO_Type. The _fileio module now compiles with --with-pydebug. 2007-03-08 21:46:15 +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