]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Rip out the file object's implementation.
authorGuido van Rossum <guido@python.org>
Tue, 12 Jun 2007 23:30:11 +0000 (23:30 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 12 Jun 2007 23:30:11 +0000 (23:30 +0000)
commitda5b8f2d28f2f7ce47be5d88244eaefc66f7de3e
treef3b0ab1f90be8ba18b1cefdb660cebd95c0f70d9
parent2d5c219fe09eacf81c139e5af9114fbbdd093d85
Rip out the file object's implementation.
Fixed test_import.py while I was at it.

However, there's still a problem in import.c -- get_file() can leak a
FILE struct (not a file descriptor though).  I'm not sure how to fix
this; closing the FILE* closes the file descriptor, and that's the
wrong thing to do when there's still a Python file object keeping the
file descriptor open.  I also would rather not mess with dup(), as it
won't port to Windows.
14 files changed:
Include/fileobject.h
Include/sysmodule.h
Modules/_cursesmodule.c
Modules/bz2module.c
Modules/cPickle.c
Modules/pyexpat.c
Objects/fileobject.c
Parser/tokenizer.c
Python/bltinmodule.c
Python/import.c
Python/marshal.c
Python/pythonrun.c
Python/sysmodule.c
runtests.sh