Normalizes exceptions, and places the normalized values in the
arguments. If type is not a class, this does nothing. If type is a
class, then it makes sure that value is an instance of the class by:
1. if instance is of the type, or a class derived from type, it does
nothing.
2. otherwise it instantiates the class, using the value as an
argument. If value is None, it uses an empty arg tuple, and if
the value is a tuple, it uses just that.
Barry Warsaw [Fri, 22 Aug 1997 21:14:38 +0000 (21:14 +0000)]
Two new built-in functions: issubclass() and isinstance(). Both take
classes as their second arguments. The former takes a class as the
first argument and returns true iff first is second, or is a subclass
of second.
The latter takes any object as the first argument and returns true iff
first is an instance of the second, or any subclass of second.
Also, change all occurances of pointer compares against
PyExc_IndexError with PyErr_ExceptionMatches() calls.
Guido van Rossum [Fri, 22 Aug 1997 20:53:47 +0000 (20:53 +0000)]
Add unsupported variable EXE which can be set to .exe on systems where
the executable must have that suffix. Note that there is no
corresponding support in the top-level Makefile because I'm not sure
that the install targets there make sense under these circumstances.
Fred Drake [Fri, 22 Aug 1997 13:51:31 +0000 (13:51 +0000)]
Changed description of SchedParams() in the following way:
\bar{Besocial} --> \var{besocial}
^--- note case ----^
The fixed version matches the signature. Changed "\bar{Besocial} gives ..."
to "The \var{besocial} flag gives ..." to keep from starting the sentence
with a lowercase token.
(The \bar{} --> \var{} change was required to keep LaTeX happy.)
Barry Warsaw [Thu, 21 Aug 1997 22:36:26 +0000 (22:36 +0000)]
Removed JF's dollar-Log-dollar RCS turd that caused compilation to
crash due to GvR's last check in message :-). Will try to convince JF
to remove all this evilness.
Guido van Rossum [Thu, 21 Aug 1997 16:13:37 +0000 (16:13 +0000)]
Completely disable the declarations for malloc() and friends. Use
#ifdef though, so if you still need these for a really backwards
compiler you know what to do.
Guido van Rossum [Wed, 20 Aug 1997 22:26:19 +0000 (22:26 +0000)]
Make sure the objects returned by __getinitargs__() are kept alive (in
the memo) to avoid a certain kind of nasty crash. (Not easily
reproducable because it requires a later call to __getinitargs__() to
return a tuple that happens to be allocated at the same address.)
Jack Jansen [Tue, 19 Aug 1997 13:58:00 +0000 (13:58 +0000)]
PythonCore is now a fat shared library, the plugin modules aren't fat,
unfortunately, this turned out to be too difficult.
Plugins.prj now builds all plugin modules, and all the
interdependencies between the projects are correct. One exception:
plugins don't attempt to build PythonCore (PythonFAT and PythonApplet do).
Guido van Rossum [Mon, 18 Aug 1997 20:57:13 +0000 (20:57 +0000)]
Changed the way python15.lib is included in the other projects.
Per Mark Hammond's suggestion, add it to the extra libs in Settings
instead of to the project's source files.
Guido van Rossum [Mon, 18 Aug 1997 20:08:24 +0000 (20:08 +0000)]
Change default verbosity so that there are only three levels left: -q,
default and -v. In default mode, the name of each test is printed.
-v is the same as the old -vv. -q is more quiet than the old default
mode; that's fine I think.
Guido van Rossum [Sun, 17 Aug 1997 16:24:30 +0000 (16:24 +0000)]
Different strategy regarding whether to declare getrusage() and
getpagesize() -- #ifdef doesn't work, Linux has conflicting decls in
its headers. Choice: only declare the return type, not the argument
prototype, and not on Linux.
Guido van Rossum [Thu, 14 Aug 1997 22:23:42 +0000 (22:23 +0000)]
Moved some non-standard format characters out of the standard list.
Also moved %c and %Z out of there, even though they are standard,
because these are locale dependent (and e.g. on Windows and Mac they
return different strings). Finally, sorted the tables slightly
different, to match my standard docs better (%a before %A).