- 14 Dec, 2000 6 commits
-
-
Fred Drake authored
This closes patch #102477.
-
Fred Drake authored
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.
-
Fred Drake authored
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.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Fred Drake authored
(Thanks for the info, Tim!)
-
- 13 Dec, 2000 17 commits
-
-
Tim Peters authored
-
Fred Drake authored
-
Tim Peters authored
-
Fred Drake authored
-
Moshe Zadka authored
-
Fred Drake authored
-
Tim Peters authored
-
Fred Drake authored
useful explanations.
-
Guido van Rossum authored
-
Fred Drake authored
DOM recommendation.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Fred Drake authored
since the API documentation will state specifically that the specializations must be used by the DOM implementations.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Andrew M. Kuchling authored
-
Tim Peters authored
a prime size, which is in fact never true anymore ...).
-
- 12 Dec, 2000 17 commits
-
-
Fred Drake authored
Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
-
Barry Warsaw authored
-
Barry Warsaw authored
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.
-
Fred Drake authored
Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
-
Jack Jansen authored
2.1.3) finally agree on when the epoch is, so the code to convert epochs has been disabled.
-
Jack Jansen authored
windows, but not on the mac. Fixed.
-
Jack Jansen authored
Pascal-strings. Safer, because Pstring converts in-place and the pathname may be reused later for error messages.
-
Jack Jansen authored
happens because the scanner ignores preprocessor #ifs).
-
Jack Jansen authored
Py_FatalError on errors.
-
Jack Jansen authored
-
Jack Jansen authored
Allow /* */ comments within function prototypes.
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Guido van Rossum authored
-
Jack Jansen authored
-