cpython/Lib
Guido van Rossum 9e1fe1ec67 A couple of changes to make this more conformant. MvL and Uche agree.
This will make it incompatible with the version found in Python 2.0.
Does this need to be done to PyXML too?

Changes that might break existing code are marked with (!) below.

- Formatting nit: no spaces inside parentheses: foo( a ) -> foo(a).

- Break long lines.

- (!) Fix getAttribute() and getAttributeNS() to return "" instead of
  raising KeyError when the attribute is not found.

- (!) Fix getAttributeNodeNS() to return None instead of raising
  KeyError.  (Curiously, getAttributeNode() already did this.)

- Added hasAttributes(), which returns true iff the node has any
  attributes.  )This is DOM level 3.)

- (!) In createDocument(), if the qualified name is not empty,
  actually create and insert the first element with that name (this
  will become doc.documentElement).  MvL believes that it should be an
  error to specify an empty qualified name; I'm not going there today,
  since it would require making a matching change to pulldom.  Maybe
  MvL will do this.

- In Document.writexml(), insert an xml declaration at the top.  (This
  doesn't include the encoding since there's no way to specify the
  encoding.  If that's preferred, all writexml() methods should be
  fixed to support an optional encoding argument that they pass to
  each other -- and they should use it to encode all text they write,
  too.  Later.)
2001-02-05 19:17:50 +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 Patch #103587: Fix typo that broke the install_data command; caught by 2001-02-05 17:43:11 +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 Update the code to better reflect recommended style: 2000-12-12 23:11:42 +00:00
lib-tk Patch by kragen@pobox.com: When tracing is turned on, lines shorter 2001-01-01 19:11:07 +00:00
plat-aix3 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-aix4 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-beos5 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-freebsd2 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-freebsd3 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-freebsd4 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-freebsd5 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +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 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-irix6 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-linux1 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-linux2 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-netbsd1 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +00:00
plat-next3
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 The socket constants have been moved to the socket module for a long time; 2001-02-02 02:51:21 +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 Fix test 9 (caught by ?!ng) 2001-02-05 17:35:20 +00:00
xml A couple of changes to make this more conformant. MvL and Uche agree. 2001-02-05 19:17:50 +00:00
aifc.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
anydbm.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
asynchat.py New asynchat.py from Sam Rushing: this foregoes using the regex module 2001-01-24 21:10:55 +00:00
asyncore.py Updated version of asyncore.py from Sam Rushing: 2001-01-24 15:50:19 +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 added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
Bastion.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
bdb.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
binhex.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
bisect.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
builtin.py
calendar.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
cgi.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
CGIHTTPServer.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
chunk.py Whitespace normalization. 2001-01-21 04:49:16 +00:00
cmd.py unnecessary semicolon 2001-01-26 17:15:18 +00:00
code.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
codecs.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
codeop.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +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 added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
Cookie.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +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
dircache.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
dis.py Allow 'continue' inside 'try' clause 2001-02-01 22:48:12 +00:00
doctest.py more __all__ updates 2001-01-20 23:34:12 +00:00
dospath.py more __all__ updates 2001-01-20 23:34:12 +00:00
dumbdbm.py more __all__ updates 2001-01-20 23:34:12 +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 Whitespace normalization. 2001-01-14 23:36:06 +00:00
fpformat.py more __all__ updates 2001-01-20 23:34:12 +00:00
ftplib.py more __all__ updates 2001-01-20 23:34:12 +00:00
getopt.py more __all__ updates 2001-01-20 23:34:12 +00:00
getpass.py more __all__ updates 2001-01-20 23:34:12 +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 added a few more __all__ lists 2001-01-23 15:35:05 +00:00
gzip.py added a few more __all__ lists 2001-01-23 15:35:05 +00:00
htmlentitydefs.py added a few more __all__ lists 2001-01-23 15:35:05 +00:00
htmllib.py added a few more __all__ lists 2001-01-23 15:35:05 +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 added a few more __all__ lists 2001-01-23 15:35:05 +00:00
imaplib.py __all__: removed "error", "abort", "readonly", as these are not 2001-01-24 04:16:09 +00:00
imghdr.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
imputil.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
keyword.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
knee.py Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
linecache.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
locale.py test___all__ was failing on WIndows because locale.py doesn't really 2001-01-24 10:13:46 +00:00
macpath.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
macstat.py
macurl2path.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
mailbox.py Two changes: 2001-01-31 22:13:15 +00:00
mailcap.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
mhlib.py a few more modules get __all__ 2001-01-24 06:27:27 +00:00
mimetools.py added a few more __all__ lists 2001-01-25 15:29:22 +00:00
mimetypes.py added a few more __all__ lists 2001-01-25 15:29:22 +00:00
MimeWriter.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
mimify.py added a few more __all__ lists 2001-01-25 15:29:22 +00:00
multifile.py Whitespace normalization. 2001-01-14 23:47:14 +00:00
mutex.py Whitespace normalization. 2001-01-14 23:47:14 +00:00
netrc.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
nntplib.py Whitespace normalization. 2001-01-16 07:12:46 +00:00
ntpath.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
nturl2path.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
os.py Whitespace normalization. 2001-01-15 00:50:52 +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 I've been using gdb a lot lately -- I'm missing 'bt' as a command in 2001-01-20 17:57:37 +00:00
persist.py
pickle.py Finn Bock (SF patch #103349): 2001-01-22 14:53:29 +00:00
pipes.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
popen2.py test_popen2 broke on Windows shortly after 2.0b2 was released. Fixed it. 2000-10-03 23:07:13 +00:00
poplib.py OK, checking in patch 103329. 2001-01-19 19:56:27 +00:00
posixfile.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
posixpath.py Fixed posixpath.normpath() to respect two leading slashes, but 2001-01-29 11:29:44 +00:00
pprint.py Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either 2000-07-16 12:04:32 +00:00
pre.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
profile.doc
profile.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
pstats.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
pty.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
py_compile.py Support \r in source files. Closes bug #101425. 2000-09-15 06:57:26 +00:00
pyclbr.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
Queue.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
quopri.py Whitespace normalization. 2001-01-15 00:50:52 +00:00
random.py Repaired a docstring. 2001-02-01 10:06:53 +00:00
re.py My fix to the URL accidentally also switched back to the "pre" module. 2000-08-01 21:22:16 +00:00
reconvert.py Whitespace normalization. 2001-01-15 01:18:21 +00:00
regex_syntax.py Whitespace normalization. 2001-01-15 01:18:21 +00:00
regsub.py Whitespace normalization. 2001-01-15 01:18:21 +00:00
repr.py Whitespace normalization. 2001-01-15 01:18:21 +00:00
rexec.py Whitespace normalization. 2001-01-15 01:18:21 +00:00
rfc822.py Whitespace normalization. 2001-01-15 01:18:21 +00:00
rlcompleter.py Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either 2000-07-16 12:04:32 +00:00
robotparser.py Whitespace normalization. 2001-01-21 04:49:16 +00:00
sched.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
sgmllib.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
shelve.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
shlex.py Whitespace normalization. 2001-01-17 08:48:39 +00:00
shutil.py Patch #103342: Make shutil.copytree more useful under Jython. 2001-01-21 20:00:00 +00:00
SimpleHTTPServer.py unnecessary semicolon 2001-01-26 17:08:32 +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 Long ago, Guido suggested that I add this to the standard library. 2001-01-31 22:51:35 +00:00
smtplib.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
sndhdr.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
socket.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
SocketServer.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
sre.py bumped SRE version number to 2.1. cleaned up and added 1.5.2 2001-01-16 07:37:30 +00:00
sre_compile.py from the really-stupid-bug department: uppercase literals should match 2001-01-15 18:28:14 +00:00
sre_constants.py added "magic" number to the _sre module, to avoid weird errors caused 2001-01-15 12:46:09 +00:00
sre_parse.py bumped SRE version number to 2.1. cleaned up and added 1.5.2 2001-01-16 07:37:30 +00:00
stat.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
statcache.py SF bug #130306: statcache.py full of thread problems. 2001-01-28 05:07:00 +00:00
statvfs.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
string.py Whitespace normalization. 2001-01-15 01:36:40 +00:00
StringIO.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
stringold.py Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either 2000-07-16 12:04:32 +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 Whitespace normalization. 2001-01-15 03:26:36 +00:00
tempfile.py Whitespace normalization. 2001-01-15 03:26:36 +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 Update for augmented assignment. 2000-08-24 21:08:39 +00:00
tokenize.py Add tokenizer support and tests for u'', U"", uR'', Ur"", etc. 2001-01-15 22:04:30 +00:00
traceback.py Whitespace normalization. 2001-01-15 03:26:36 +00:00
tty.py Whitespace normalization. 2001-01-15 03:26:36 +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 allow first param urlencode to be a sequence of two-element tuples - in this 2001-01-28 21:11:12 +00:00
urllib2.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +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 added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
UserList.py added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +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 Ouch! I need a better test suite for this. ;-( 2001-02-02 19:28:35 +00:00
webbrowser.py Fixed autoraise glitches. 2001-01-23 15:49:34 +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 Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00
zipfile.py Whitespace normalization. Top level of Lib now fixed-point for reindent.py! 2001-01-15 03:34:38 +00:00