Guido van Rossum [Thu, 28 Aug 1997 02:38:01 +0000 (02:38 +0000)]
New installation instructions show how to maintain multiple FAQs.
Removed bootstrap script from end of faqwiz.py module.
Added instructions to bootstrap script, too.
Version bumped to 0.8.
Added <html>...</html> feature suggested by Skip Montanaro.
Added leading text for Roulette, default to 'Hit Reload ...'.
Fix typo in default SRCDIR.
Guido van Rossum [Tue, 26 Aug 1997 19:06:40 +0000 (19:06 +0000)]
Explicitly close the socket and temp file in URLopener.retrieve(), so
that multiple retrievals using the same connection will work.
This leaves open the more general problem that after
f = urlopen("ftp://...")
f must be closed before another retrieval from the same host should be
attempted.
Jack Jansen [Tue, 26 Aug 1997 13:20:34 +0000 (13:20 +0000)]
Handle systemclicks ourselves, in stead of passing them to Sioux. This
fixes (or masks?) a bug with Python becoming unreactive during
time.sleep() if you have already switched applications before.
Barry Warsaw [Mon, 25 Aug 1997 22:13:04 +0000 (22:13 +0000)]
eval_code2(): collapsed the implementations of UNPACK_TUPLE and
UNPACK_LIST byte codes and added a third code path that allows
generalized sequence unpacking. Now both syntaxes:
a, b, c = seq
[a, b, c] = seq
can be used to unpack any sequence with the exact right number of
items.
unpack_sequence(): out-lined implementation of generalized sequence
unpacking. tuple and list unpacking are still inlined.
Guido van Rossum [Mon, 25 Aug 1997 21:23:56 +0000 (21:23 +0000)]
Allow assignments to instance.__dict__ and instance.__class__. The
former lets you give an instance a set of new instance vars. The
latter lets you give it a new class. Both are typechecked and
disallowed in restricted mode.
For classes, the check for read-only special attributes is tightened
so that only assignments to __dict__, __bases__, __name__,
__getattr__, __setattr__, and __delattr__ (these could be made to work
as well, but I don't know if that's useful -- let's see first whether
mucking with instances will help).
Guido van Rossum [Mon, 25 Aug 1997 18:36:23 +0000 (18:36 +0000)]
Rename roundup() to roundupsize(), as there's a macro roundup() in the
sys/types.h header on many systems that may get pulled in (through
WANT_SIGFPE_HANDLER which pulls in signal.h).
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.