Commit graph

15568 commits

Author SHA1 Message Date
Fred Drake
de77bc5468 For the title page, insert the package version number before the date.
This makes the title area more like the title are of the top-level
index, and puts the information more people are interested in first.
2000-12-14 18:36:12 +00:00
Fred Drake
3277da0f33 Update the test suite to cover more ground.
This closes patch #102477.
2000-12-14 18:20:22 +00:00
Fred Drake
f7cf40d331 Lots of small bug fixes and DOM API conformance improvements:
Make Node inherit from xml.dom.Node to pick up the NodeType values
defined by the W3C recommendation.

When raising AttributeError, be sure to provide the name of the attribute
that does not exist.

Node.normalize():  Make sure we do not allow an empty text node to survive
                   as the first child; update the sibling links properly.

_getElementsByTagNameNSHelper():  Make recursive calls using the right
                                  number of parameters.

Attr.__setattr__():  Be sure to update name and nodeName at the same time
                     since they are synonyms for this node type.

AttributeList:  Renamed to NamedNodeMap (AttributeList maintained as an
                alias).  Compute the length attribute dynamically to allow
                the underlying structures to mutate.

AttributeList.item():  Call .keys() on the dictionary rather than using
                       self.keys() for performance.

AttributeList.setNamedItem(), .setNamedItemNS():
        Added methods.

Text.splitText():
        Added method.

DocumentType:
        Added implementation class.

DOMImplementation:
        Added implementation class.

Document.appendChild():  Do not allow a second document element to be added.

Document.documentElement:  Find this dynamically, so that one can be
        removed and another added.

Document.unlink():  Clear the doctype attribute.

_get_StringIO():  Only use the StringIO module; cStringIO does not support
                  Unicode.
2000-12-14 18:16:11 +00:00
Fred Drake
c16adce273 Adjust PullDOM to use a DOMImplementation instance to create new Document
objects; uses minidom if one is not provided to the constructor.

parse():  Pick up the default_bufsize default value dynamically so that
          the value in the module may be (meaningfully) changed at runtime.

This (partially) closes patch #102477.
2000-12-14 18:00:18 +00:00
Guido van Rossum
adf5410dc4 Test for NULL returned from PyObject_NEW(). 2000-12-14 15:09:46 +00:00
Guido van Rossum
9e8f4ea0aa Test for NULL returned from PyObject_NEW(). 2000-12-14 14:59:53 +00:00
Fred Drake
f0b315478b Update information on the locking() function, added the needed constants.
(Thanks for the info, Tim!)
2000-12-14 03:11:24 +00:00
Tim Peters
f7f88b11e4 Add long-overdue docstrings to dict methods. 2000-12-13 23:18:45 +00:00
Fred Drake
48971198c5 Finish a sentence that was left half-written! 2000-12-13 22:36:02 +00:00
Tim Peters
0e76ab2ecc Use METH_VARARGS instead of "1" in list method table. 2000-12-13 22:35:46 +00:00
Fred Drake
ec126dab9c When raising KeyError, provide the key value that failed. 2000-12-13 20:48:29 +00:00
Moshe Zadka
dd802208a7 Changing allow_reuse_address's default value, and documenting it. 2000-12-13 20:39:22 +00:00
Fred Drake
a63bd1c65b Untabify! (Barry, this is gonna cost you a bottle of wine! ;) 2000-12-13 20:23:11 +00:00
Tim Peters
f1c7c884b3 Typo repair in comments. Fell for GregS's .popitem() poke. 2000-12-13 19:58:25 +00:00
Fred Drake
24d6da3eae Added "stub" documentation for xml.dom.pulldom for Paul to fill out with
useful explanations.
2000-12-13 19:34:38 +00:00
Guido van Rossum
ff87174db1 Get rid of string module and string exceptions. 2000-12-13 18:11:56 +00:00
Fred Drake
bc9c1b15cc Added descriptions of the defined exceptions and their mapping to the
DOM recommendation.
2000-12-13 17:38:02 +00:00
Martin v. Löwis
22352957cb Set CXX even when --with-cxx is not specified. Closes bug 14782. 2000-12-13 17:37:02 +00:00
Martin v. Löwis
537970fe26 Set CXX even when --with-cxx is not specified. Closes bug #124782 2000-12-13 17:37:02 +00:00
Fred Drake
5d1b5eaf55 Add code to DOMException to ensure it cannot be instantiated directly,
since the API documentation will state specifically that the specializations
must be used by the DOM implementations.
2000-12-13 16:35:53 +00:00
Martin v. Löwis
64acf1db22 Add standard DOM exception hierarchy. 2000-12-13 14:21:07 +00:00
Martin v. Löwis
2df6694eff Document --with-cxx. 2000-12-13 14:14:32 +00:00
Andrew M. Kuchling
a3b5a5f2db Check in README file and one demo program 2000-12-13 03:50:20 +00:00
Tim Peters
ea8f2bf9ca Bring comments up to date (e.g., they still said the table had to be
a prime size, which is in fact never true anymore ...).
2000-12-13 01:02:46 +00:00
Fred Drake
8152d32375 Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
2000-12-12 23:20:45 +00:00
Barry Warsaw
c140131995 Change the file's indentation from tabs to 4 spaces per level. 2000-12-12 23:16:51 +00:00
Barry Warsaw
c7ed0e3c13 Accept Finn Bock's patch #102208 to hardcode EINVAL to 22 when errno
can't be imported.  This makes StringIO.py work with Jython.

Also, get rid of the string module by converting to string methods.

Shorten some lines by using augmented assignment where appropriate.
2000-12-12 23:12:23 +00:00
Fred Drake
132dce2246 Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
2000-12-12 23:11:42 +00:00
Jack Jansen
63596aeb33 The Mac C library (MSL from CodeWarrior 6) and I/O library (GUSI
2.1.3) finally agree on when the epoch is, so the code to convert
epochs has been disabled.
2000-12-12 22:42:30 +00:00
Jack Jansen
d49056cd90 The ".pth" code knew about the layout of Python trees on unix and
windows, but not on the mac. Fixed.
2000-12-12 22:39:04 +00:00
Jack Jansen
fd0226b327 Use c2pstr() in stead of Pstring() to convert C-strings to
Pascal-strings. Safer, because Pstring converts in-place and the
pathname may be reused later for error messages.
2000-12-12 22:36:57 +00:00
Jack Jansen
27489d4c8c Optionally weed out duplicate prototypes for the same function (which
happens because the scanner ignores preprocessor #ifs).
2000-12-12 22:24:35 +00:00
Jack Jansen
c1a4a04792 Adapted to new standard for initmodule() routine: don't call
Py_FatalError on errors.
2000-12-12 22:22:59 +00:00
Jack Jansen
7e0c0050a8 Various new standard types. 2000-12-12 22:21:39 +00:00
Jack Jansen
b8c68634b3 Added support for generating a single module from multiple .h files.
Allow /* */ comments within function prototypes.
2000-12-12 22:21:11 +00:00
Jack Jansen
5f884c05d1 Refer to the sourceforge site for gusi downloads. 2000-12-12 22:14:14 +00:00
Jack Jansen
4b64c2aa86 Put all AE constants into AppleEvents.py 2000-12-12 22:13:36 +00:00
Jack Jansen
50bf148afe Qdoffs now exports the GWorldObj_{New,Convert} functions. 2000-12-12 22:13:03 +00:00
Jack Jansen
5afad8315b Added a c2pstrcpy() function. 2000-12-12 22:12:14 +00:00
Guido van Rossum
3661d39474 Describe {}.popitem(). 2000-12-12 22:10:31 +00:00
Jack Jansen
723ad8ae73 More toolbox modules adapted to Universal Headers 3.3.2. 2000-12-12 22:10:21 +00:00
Jack Jansen
8ed81303f6 Use new multi-input-file feature of bgen in stead of @-file hack to parse multiple header files. A side effect is that the ObjectSupportLib routines are now also available in Python. 2000-12-12 22:09:11 +00:00
Jack Jansen
6fe608c840 Regenerated from Universal Headers 3.3.2 2000-12-12 22:08:00 +00:00
Jack Jansen
177fa8c25e Put all AE constants into AppleEvents.py 2000-12-12 22:06:53 +00:00
Guido van Rossum
1072c3872d Add popitem(). 2000-12-12 22:06:00 +00:00
Guido van Rossum
ff63f2023d "Documentation" for {}.popitem(). 2000-12-12 22:03:47 +00:00
Guido van Rossum
b822c6138e Added test for {}.popitem(). 2000-12-12 22:02:59 +00:00
Guido van Rossum
ba6ab84e73 Add popitem() -- SF patch #102733. 2000-12-12 22:02:18 +00:00
Jack Jansen
968c36d81b Qdoffs now exports GWorld new/convert, and Qt uses them.
Drag moved to core toolbox modules (Win uses it).
2000-12-12 21:53:48 +00:00
Jack Jansen
b5e4248f71 Drag moved to core toolbox modules (Win uses it). 2000-12-12 21:53:14 +00:00