cpython/Misc
Lars Gustäbel dd866d57af Issue #6123: Fix opening empty archives and files.
(Note that an empty archive is not the same as an empty file. An
empty archive contains no members and is correctly terminated with an
EOF block full of zeros. An empty file contains no data at all.)

The problem was that although tarfile was able to create empty
archives, it failed to open them raising a ReadError. On the other
hand, tarfile opened empty files without error in most read modes and
presented them as empty archives. (However, some modes still raised
errors: "r|gz" raised ReadError, but "r:gz" worked, "r:bz2" even
raised EOFError.)

In order to get a more fine-grained control over the various internal
error conditions I now split up the HeaderError exception into a
number of meaningful sub-exceptions. This makes it easier in the
TarFile.next() method to react to the different conditions in the
correct way.

The visible change in its behaviour now is that tarfile will open
empty archives correctly and raise ReadError consistently for empty
files.
2009-11-22 18:30:53 +00:00
..
RPM Bumping to 2.6 final. 2008-10-01 21:46:40 +00:00
TextMate/Python-Dev.tmbundle Add a snippet for the deprecation directive for docs. 2008-05-15 04:36:53 +00:00
Vim Properly detect whether a C file is using tabs or spaces for Vim. 2009-11-08 21:35:28 +00:00
ACKS Issue #7211: Allow 64-bit values for the `ident` and `data` fields of kevent 2009-11-04 19:25:14 +00:00
AIX-NOTES Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
BeOS-NOTES Remove Mikael as the maintainer of BeOS at his request. With no maintainer 2007-08-18 18:30:36 +00:00
BeOS-setup.py Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
HISTORY Move find_recursionlimit.py to Tools/scripts; it is out of place in Misc. 2009-10-11 21:10:07 +00:00
NEWS Issue #6123: Fix opening empty archives and files. 2009-11-22 18:30:53 +00:00
NEWS.help Bug #1014775: update NEWS.help for changes in docutils. 2004-08-30 14:33:25 +00:00
PURIFY.README Update purify doc some. 2006-08-14 01:49:54 +00:00
Porting Remove mention of the old -X command line switch. 2009-10-29 20:39:50 +00:00
README Update Misc/README. 2009-10-11 21:17:14 +00:00
README.OpenBSD Add some notes about a recurring problem with OpenBSD 2006-01-09 07:29:03 +00:00
README.coverity Add some explanation about Klocwork and Coverity static analysis 2006-08-02 07:09:32 +00:00
README.klocwork Klocwork made another run and found a bunch more problems. 2006-08-12 01:43:40 +00:00
README.valgrind Add some notes about a couple of poorly behaved tests 2006-04-17 01:49:14 +00:00
RFD
SpecialBuilds.txt Fix typo. 2006-11-15 16:23:46 +00:00
build.sh 1. Clean workspace more thoughly before build. 2009-07-27 16:09:28 +00:00
cheatsheet #6332: fix word dupes throughout the source. 2009-06-24 06:41:19 +00:00
developers.txt Add Mark Summerfield. 2009-09-19 13:20:49 +00:00
gdbinit Fix the "pylocals" gdb command. 2009-07-23 09:17:09 +00:00
indent.pro
pymemcompat.h Fix grammatically inept comment. 2002-08-22 13:36:11 +00:00
python-config.in Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS 2007-03-31 18:56:11 +00:00
python-mode.el sync with most recent version from python-mode sf project 2008-02-05 02:32:16 +00:00
python-wing.wpr Adding Wing project file 2009-04-01 18:25:38 +00:00
python.man update urls 2009-09-13 01:59:31 +00:00
python.pc.in Issue #3585: Add pkg-config support. 2009-05-24 20:23:57 +00:00
setuid-prog.c correct bogus instructions 'ccoment out' -> 'uncomment' 1998-09-10 20:18:09 +00:00
valgrind-python.supp Fix: 2008-08-24 05:04:52 +00:00
vgrindefs Add 'yield' as a keyword 2001-08-06 17:42:53 +00:00

README

Python Misc subdirectory
========================

This directory contains files that wouldn't fit in elsewhere.  Some
documents are only of historic importance.

Files found here
----------------

ACKS		Acknowledgements
AIX-NOTES	Notes for building Python on AIX
BeOS-NOTES	Notes for building on BeOS
BeOS-setup.py	setup.py replacement for BeOS, see BeOS-NOTES
build.sh	Script to build and test latest Python from the repository
cheatsheet	Quick summary of Python by Ken Manheimer
developers.txt	A history of who got developer permissions, and why
gdbinit		Handy stuff to put in your .gdbinit file, if you use gdb
HISTORY		News from previous releases -- oldest last
indent.pro	GNU indent profile approximating my C style
NEWS		News for this release (for some meaning of "this")
NEWS.help	How to edit NEWS
Porting		Mini-FAQ on porting to new platforms
PURIFY.README	Information for Purify users
pymemcompat.h	Memory interface compatibility file.
python.man	UNIX man page for the python interpreter
python-mode.el	Emacs mode for editing Python programs
python.pc.in	Package configuration info template for pkg-config
python-wing.wpr Wing IDE project file
README		The file you're reading now
README.coverity	Information about running Coverity's Prevent on Python
README.klocwork	Information about running Klocwork's K7 on Python
README.OpenBSD	Help for building problems on OpenBSD
README.valgrind	Information for Valgrind users, see valgrind-python.supp
RFD		Request For Discussion about a Python newsgroup
RPM		(Old) tools to build RPMs
setuid-prog.c	C helper program for set-uid Python scripts
SpecialBuilds.txt     Describes extra symbols you can set for debug builds
TextMate	A TextMate bundle for Python development
valgrind-python.supp  Valgrind suppression file, see README.valgrind
vgrindefs	Python configuration for vgrind (a generic pretty printer)
Vim		Python development utilities for the Vim editor