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.
Two changes:
- Use new Error class (subclass of RuntimeError so is backward
compatible) which is raised when RuntimeError used to be raised.
- Report original attribute name in error messages instead of name
mangled with namespace URL.
Make isinstance() more permissive in what types of arguments it
accepts. Clarify exception messages for isinstance() and
issubclass(). Closes bug #124106.
Tim Peters [Fri, 1 Dec 2000 07:59:35 +0000 (07:59 +0000)]
Made the description of %[udxXo] formats of negative longs in 2.1 more accurate.
I suggested to Guido that %u be deprecated (it seems useless in Python to me).
Fred Drake [Thu, 30 Nov 2000 07:12:54 +0000 (07:12 +0000)]
Use small tables instead of bare \item markers to describe the contents
of return tuples. The bare \item took advantage of an implementation
detail when formatting in LaTeX, and was just wrong when generating HTML.
It also broke the XML conversion scripts, since there was no enclosing
list-like environment to contain them.
Fred Drake [Wed, 29 Nov 2000 15:48:22 +0000 (15:48 +0000)]
In the first discussion showing how to handle exceptions from C, make the
Python equivalent actually equivalent to the C code. Also, in the C code,
place the "goto" statements on a line by themselves for better visibility
of statements that affect control flow.
Fred Drake [Wed, 29 Nov 2000 06:10:22 +0000 (06:10 +0000)]
Substantial re-organization of the DOM documentation. The abstract API
is now separated from the supplied standard implementation. Not all
interfaces are documented yet, but the structure is better set up to do
so.
There is still a lot to do here, but the shape of the documentation is
coming into line.