cpython/Lib
Fred Drake 3e038e5e25 Define lots of constants for indexes into the structures for the file
header and central directory structures, and use them as appropriate.
The point being to make it easier to tell what is getting pulled out
where; magic numbers are evil!

Change the computation of the ZipInfo.file_offset field to use the
length of the relevant "extra" field -- there are two different ones,
and the wrong one had been used.  ;-(

This closes SF tracker patch #403276, but more verbosely than the
proposed patch.
2001-02-28 17:56:26 +00:00
..
compiler a few small optimizations that seem to give a 5-10% speedup; the 2000-11-06 16:03:52 +00:00
curses Make isspace(chr(32)) return true 2000-12-26 16:07:59 +00:00
distutils Bug #229280: remove '/' characters from the OS name (for BSD/OS :) ) 2001-02-27 19:25:42 +00:00
encodings This patch changes the default behaviour of the builtin charmap 2001-01-03 21:29:14 +00:00
idlelib Fixes for Python 1.6 compatibility - socket bind and connect get a 2000-09-24 06:29:50 +00:00
lib-old Fixed syntax error. 2001-02-09 16:34:24 +00:00
lib-tk String method conversion. 2001-02-09 11:51:27 +00:00
plat-aix3 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-aix4 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-beos5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd2 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd3 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd4 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-freebsd5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-generic Use python$EXE instead of python, for Darwin. (Patch by Tony 2000-10-09 19:34:12 +00:00
plat-irix5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-irix6 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-linux1 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-linux2 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-netbsd1 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
plat-next3 regen for Next 1996-08-16 18:14:41 +00:00
plat-sunos4 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-sunos5 Replace all the platform-specific TERMIOS modules with a portable version 2001-02-27 21:35:40 +00:00
site-packages Add a README file so that cvs update -P doesn't obliterate this 2000-03-31 20:03:56 +00:00
test Add regression test for future statements. This adds eight files, but 2001-02-28 17:48:06 +00:00
xml Patch #103885: Add dynamic registration and lookup of DOM implementations. 2001-02-22 14:05:50 +00:00
__future__.py Whitespace normalization. 2001-02-28 08:26:44 +00:00
aifc.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
anydbm.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
asynchat.py Whitespace normalization. 2001-02-09 20:06:00 +00:00
asyncore.py String method conversion. 2001-02-09 05:07:04 +00:00
atexit.py Bug #128475: mimetools.encode (sometimes) fails when called from a thread. 2001-01-21 03:40:37 +00:00
audiodev.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
base64.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
BaseHTTPServer.py Correction to test main. 2001-02-09 05:38:46 +00:00
Bastion.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
bdb.py String method conversion. 2001-02-09 05:07:04 +00:00
binhex.py String method cleanup. 2001-02-10 00:06:00 +00:00
bisect.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
builtin.py added builtin b/w compat module. 1993-10-22 14:24:22 +00:00
calendar.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
cgi.py added missing element to __all__ 2001-02-28 01:03:48 +00:00
CGIHTTPServer.py Eliminate use of string.whitespace and a string import with it. 2001-02-09 12:10:26 +00:00
chunk.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
cmd.py String method conversion. 2001-02-09 04:52:11 +00:00
code.py String method conversion. 2001-02-09 08:56:30 +00:00
codecs.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
codeop.py String method conversion. 2001-02-09 08:56:30 +00:00
colorsys.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
commands.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
compileall.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
ConfigParser.py Make sure ConfigParser uses .optionxform() consistently; this affects 2001-02-26 21:55:34 +00:00
Cookie.py Patch #103473 from dougfort: Some sites (amazon.com for one) drop 2001-02-20 22:11:24 +00:00
copy.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
copy_reg.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
dbhash.py fail more completely by deleting dbhash from sys.modules if bsddb can't be 2001-01-25 13:47:00 +00:00
difflib.py Improve accuracy. In the .tex file, note the new "% BUG:" comments: an 2001-02-20 11:24:35 +00:00
dircache.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
dis.py String method conversion. 2001-02-09 08:25:29 +00:00
doctest.py Miranda newlines: if anything at all was written to stdout, supply a 2001-02-14 06:35:35 +00:00
dospath.py more __all__ updates 2001-01-20 23:34:12 +00:00
dumbdbm.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
filecmp.py more __all__ updates 2001-01-20 23:34:12 +00:00
fileinput.py more __all__ updates 2001-01-20 23:34:12 +00:00
fnmatch.py more __all__ updates 2001-01-20 23:34:12 +00:00
formatter.py String method conversion. 2001-02-09 11:10:16 +00:00
fpformat.py more __all__ updates 2001-01-20 23:34:12 +00:00
ftplib.py Provide a default for the blocksize arg of storbinary(). 2001-02-15 13:50:36 +00:00
getopt.py more __all__ updates 2001-01-20 23:34:12 +00:00
getpass.py Get the needed constants from termios, not TERMIOS. 2001-02-27 21:23:31 +00:00
gettext.py added a few more __all__ lists 2001-01-23 15:35:05 +00:00
glob.py more __all__ updates 2001-01-20 23:34:12 +00:00
gopherlib.py String method conversion. 2001-02-09 10:10:02 +00:00
gzip.py The code to write timestamps couldn't handle negative times (and time 2001-02-21 10:39:35 +00:00
htmlentitydefs.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
htmllib.py String method conversion. 2001-02-09 08:25:29 +00:00
httplib.py An ssl-wrapped socket now returns '' on EOF, just like a regular 2001-02-01 23:35:20 +00:00
ihooks.py String method conversion. 2001-02-09 10:18:37 +00:00
imaplib.py Fix previous checkin, hopelessly broken as it was; reported by Detlef Lannert. 2001-02-22 13:24:27 +00:00
imghdr.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
imputil.py This change makes imputil more closely emulate the standard import 2001-02-12 09:17:06 +00:00
inspect.py Whitespace normalization. 2001-02-28 08:26:44 +00:00
keyword.py String method conversion. 2001-02-09 09:10:35 +00:00
knee.py String method conversion. 2001-02-09 09:48:45 +00:00
linecache.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
locale.py String method conversion. 2001-02-09 10:48:30 +00:00
macpath.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
macstat.py * Lib/linecache.py: don't crash on empty filename 1994-08-23 13:32:20 +00:00
macurl2path.py String method conversion. 2001-02-09 09:48:45 +00:00
mailbox.py Two changes: 2001-01-31 22:13:15 +00:00
mailcap.py String method conversion. 2001-02-09 10:23:55 +00:00
mhlib.py String method cleanup. 2001-02-10 00:22:33 +00:00
mimetools.py Do not hide a failure to create a temporary file; if it fails the work 2001-02-23 20:04:54 +00:00
mimetypes.py String method conversion. Added a trivial main to test it with. 2001-02-09 09:44:47 +00:00
MimeWriter.py String method conversion. 2001-02-09 09:39:08 +00:00
mimify.py String method cleanup. 2001-02-10 00:22:33 +00:00
multifile.py String method conversion. 2001-02-09 16:56:44 +00:00
mutex.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
netrc.py added several more __all__ lists 2001-02-06 01:07:02 +00:00
nntplib.py String method conversion. 2001-02-09 07:02:17 +00:00
ntpath.py added several more __all__ lists 2001-02-06 01:07:02 +00:00
nturl2path.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
os.py added some elements missing from __all__ 2001-02-28 01:00:58 +00:00
pdb.doc Untabified and applied Richard Wolff's changes (plus my own reflowing 1998-09-17 15:01:38 +00:00
pdb.py SF bug #131560: pdb imports 'repr', causing name collision 2001-02-09 23:28:07 +00:00
persist.py * ftplib.py: added abort() command (sends oob data). 1993-05-24 14:16:22 +00:00
pickle.py add module-level constants to __all__ 2001-02-18 03:10:09 +00:00
pipes.py a few more __all__ lists 2001-02-07 23:14:30 +00:00
popen2.py Whitespace normalization. 2001-02-09 20:06:00 +00:00
poplib.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
posixfile.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
posixpath.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pprint.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pre.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
profile.doc Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
profile.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pstats.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pty.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
py_compile.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pyclbr.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
pydoc.py Whitespace normalization. 2001-02-28 08:26:44 +00:00
Queue.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
quopri.py __all__ for several more modules 2001-02-12 02:00:42 +00:00
random.py Whitespace normalization. 2001-02-15 23:56:39 +00:00
re.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
reconvert.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
regex_syntax.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
regsub.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
repr.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
rexec.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
rfc822.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
rlcompleter.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
robotparser.py Whitespace normalization. 2001-02-15 23:56:39 +00:00
sched.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
sgmllib.py SF Patch # 103839 byt dougfort: Allow ';' in attributes 2001-02-19 18:39:09 +00:00
shelve.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
shlex.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
shutil.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
SimpleHTTPServer.py Correction after translation test. 2001-02-09 10:26:06 +00:00
site.py A hack to augment sys.path with the build/lib.<platform> directory 2001-01-19 21:54:59 +00:00
smtpd.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
smtplib.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
sndhdr.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
socket.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
SocketServer.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
sre.py - restored 1.5.2 compatibility (sorry, eric) 2001-02-18 12:05:16 +00:00
sre_compile.py - restored 1.5.2 compatibility (sorry, eric) 2001-02-18 12:05:16 +00:00
sre_constants.py - restored 1.5.2 compatibility (sorry, eric) 2001-02-18 12:05:16 +00:00
sre_parse.py detect attempts to repeat anchors (fixes bug #130748) 2001-02-18 21:04:48 +00:00
stat.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
statcache.py bunch more __all__ lists 2001-02-15 22:15:14 +00:00
statvfs.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
string.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
StringIO.py Remove silly EMPTYSTRING global. Saves a global lookup. 2001-02-09 13:37:37 +00:00
stringold.py Nuke accurate but confusing and unhelpful comments about split vs splitfields. 2001-02-09 20:18:41 +00:00
sunau.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
sunaudio.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
symbol.py Update for augmented assignment. 2000-08-24 21:08:39 +00:00
tabnanny.py Whitespace normalization. 2001-01-15 03:26:36 +00:00
telnetlib.py String method conversion. 2001-02-09 07:10:12 +00:00
tempfile.py fix long line 2001-02-19 15:34:10 +00:00
TERMIOS.py No need to call filterwarnings() to suppress further warnings from this 2001-02-27 21:51:47 +00:00
threading.py Whitespace normalization. 2001-01-15 03:26:36 +00:00
toaiff.py Whitespace normalization. 2001-01-15 03:26:36 +00:00
token.py String method cleanup. 2001-02-10 00:22:33 +00:00
tokenize.py String method conversion. 2001-02-09 11:10:16 +00:00
traceback.py String method cleanup. 2001-02-10 00:22:33 +00:00
tty.py Get the needed constants from termios, not TERMIOS. 2001-02-27 21:23:31 +00:00
types.py Marc-Andre Lemburg: add UnicodeType. 2000-03-10 23:18:11 +00:00
tzparse.py Whitespace normalization. 2001-01-15 03:26:36 +00:00
urllib.py Whitespace normalization. 2001-02-28 08:26:44 +00:00
urllib2.py String method conversion. 2001-02-09 11:10:16 +00:00
urlparse.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
user.py Lawrence Kesteloot noted: Lib/user.py has a comment that says that the 2000-03-30 15:00:33 +00:00
UserDict.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
UserList.py removed __all__ from several modules 2001-02-18 03:30:53 +00:00
UserString.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
uu.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
warnings.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
wave.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
weakref.py Patch #403985: Add support for weak-keyed dictionaries 2001-02-27 18:36:56 +00:00
webbrowser.py Whitespace normalization. 2001-02-28 08:26:44 +00:00
whichdb.py Add missing 'try:'. Patch by Rob W. W. Hooft, #101071 (closed.) 2000-08-04 08:46:59 +00:00
whrandom.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
xdrlib.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
xmllib.py String method conversion. 2001-02-09 10:48:30 +00:00
zipfile.py Define lots of constants for indexes into the structures for the file 2001-02-28 17:56:26 +00:00