Fred Drake [Thu, 14 Dec 2000 18:36:12 +0000 (18:36 +0000)]
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.
Fred Drake [Thu, 14 Dec 2000 18:16:11 +0000 (18:16 +0000)]
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.
Fred Drake [Wed, 13 Dec 2000 16:35:53 +0000 (16:35 +0000)]
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.
Jack Jansen [Tue, 12 Dec 2000 22:42:30 +0000 (22:42 +0000)]
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.
Jack Jansen [Tue, 12 Dec 2000 22:36:57 +0000 (22:36 +0000)]
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.
Jack Jansen [Tue, 12 Dec 2000 22:09:11 +0000 (22:09 +0000)]
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.
Guido van Rossum [Tue, 12 Dec 2000 15:24:57 +0000 (15:24 +0000)]
Typo detected by "the miraculous Debian package lint tool "lintian"
(http://package.debian.org/lintian), which includes a spellchecker for
common typos in control files of packages... You see, we're so
paranoid that we even have automatic tools that keep monitoring
license files ;-)" (Gregor Hoffleit)
Changed .getaliases() support to register the new aliases in the
encodings package aliases mapping dictionary rather than in the
internal cache used by the search function.
This enables aliases to take advantage of the full normalization
process applied to encoding names which was previously not available.
The patch restricts alias registration to new aliases. Existing
aliases cannot be overridden anymore.
Tim Peters [Tue, 12 Dec 2000 01:58:56 +0000 (01:58 +0000)]
Partial fix for SF bug 122780 (msvcrt.locking constants aren't defined).
Still needs docs; see bug report (which was reassigned to Fred) for MS's docs.
Guido van Rossum [Mon, 11 Dec 2000 20:32:20 +0000 (20:32 +0000)]
Hoepeful fix for SF bug #123924: Windows - using OpenSSL, problem with
socket in httplib.py.
The bug reports that on Windows, you must pass sock._sock to the
socket.ssl() call. But on Unix, you must pass sock itself. (sock is
a wrapper on Windows but not on Unix; the ssl() call wants the real
socket object, not the wrapper.)
So we see if sock has an _sock attribute and if so, extract it.
Unfortunately, the submitter of the bug didn't confirm that this patch
works, so I'll just have to believe it (can't test it myself since I
don't have OpenSSL on Windows set up, and that's a nontrivial thing I
believe).
Fred Drake [Mon, 11 Dec 2000 15:50:07 +0000 (15:50 +0000)]
select.select(): Add note that though this function accepts empty lists,
using *only* empty lists may not be acceptable on all
platforms, with the specific caveat that it does not
work on Windows. Also clarified list of acceptable
objects that may be in the lists, to let the user know
that file objects are not usable here on Windows.
Fred Drake [Thu, 7 Dec 2000 04:54:02 +0000 (04:54 +0000)]
Fix error noted by Gerrit Holl (old; had been buried in my INBOX):
sequence repitition works just fine with long integers now, so we
should not say that only plain integers are allowed.
Fred Drake [Thu, 7 Dec 2000 04:49:34 +0000 (04:49 +0000)]
Added a note that objects which emulate built-in types should only
implement as many of the relevant methods as make sense for the particular
information being modelled.
Barry Warsaw [Wed, 6 Dec 2000 21:47:46 +0000 (21:47 +0000)]
_getframe(): New sys module function for getting at the stack frame.
Implements and closes SF patch #102106, with Guido's suggested
documentation changes.