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.
This commit is contained in:
Guido van Rossum 2007-03-08 00:43:48 +00:00
parent 4d0f5a4934
commit a9e2024b84
5 changed files with 1002 additions and 1 deletions

View file

@ -1037,6 +1037,9 @@ class PyBuildExt(build_ext):
# Thomas Heller's _ctypes module
self.detect_ctypes(inc_dirs, lib_dirs)
# _fileio -- supposedly cross platform
exts.append(Extension('_fileio', ['_fileio.c']))
# Platform-specific libraries
if platform == 'linux2':
# Linux-specific modules