* Include/classobject.h, Objects/classobject.c, Python/ceval.c:
entirely redone operator overloading. The rules for class
instances are now much more relaxed than for other built-in types
(whose coerce must still return two objects of the same type)
* Objects/floatobject.c: add overflow check when converting float
to int and implement truncation towards zero using ceil/float
* Objects/longobject.c: change ValueError to OverflowError when
converting to int
* Objects/rangeobject.c: modernized
* Objects/stringobject.c: use HAVE_LIMITS instead of __STDC__
* Objects/xxobject.c: changed to use new style (not finished?)
gestaltmodule.c: interface to Gestalt Manager.
macosmodule.c: interface to random collection of Managers.
macsetfiletype.c: set file type, for import.c.
* Python/ceval.c (eval_code): added registry of pending functions
(to be used by functions that are called asynchronously, like
UNIX signal handlers or Mac I/O completion routines)
* Import/pythonrun.h, Python/{import,pythonrun}.c,
mac/macsetfiletype.c: changes by Jack to execute .pyc file passed
as command line argument. On the Mac .pyc files are given a
special type so they can be double-clicked
mhlib.py: delay opening of sequences file so we don't overwrite it when
putsequences is called with a bad argument
rfc822.py: better handling of dates with no or bad timezones
uu.py: contributed by Lance -- uu{en,de}code
Guido van Rossum [Tue, 30 Aug 1994 12:38:05 +0000 (12:38 +0000)]
* Python/getmtime.c: Remove mac specifics (Mac subdirectory has
its own version now)
* Python/bltinmodule.c (builtin_tuple): use pre-existing
listtuple(v) for lists
Guido van Rossum [Mon, 29 Aug 1994 12:54:38 +0000 (12:54 +0000)]
* Python/import.c: support *.o/*.so as alternative for
*module.o/*module.so
* Python/import.c: if initializing a module did not enter the
module into sys.modules, it may have raised an exception -- don't
override this exception.
Merged NT changes
* Python/import.c: add lost NT-specific code back in
Guido van Rossum [Mon, 29 Aug 1994 12:50:44 +0000 (12:50 +0000)]
* Python/pythonrun.c (print_error): added INCREF/DECREF pair --
the exception returned by a syntax error (when reported) would
contain an object with refcnt zero!
MPW changes
Guido van Rossum [Mon, 29 Aug 1994 10:52:58 +0000 (10:52 +0000)]
New way of generating .pyc files, thanks to Sjoerd.
urllib.py: '+' is not always safe (even though the RFC says so :-( )
whrandom.py: throw away top bits of time to avoid overflow on Mac
(where times can be negative)
Guido van Rossum [Mon, 29 Aug 1994 10:46:42 +0000 (10:46 +0000)]
Makefile.pre.in: add $(OPT) to link command
audioop.c: fix for MPW
config.c.in: save original argc/argv for Lance
rotormodule.c: new coding conventions
timemodule.c: add casts for Lance
Guido van Rossum [Mon, 29 Aug 1994 08:42:37 +0000 (08:42 +0000)]
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
versions -- they now share config.c and config.h, and statting is
always done through macstat.[ch] (THINK's <stat.h> defines funny
constants). Also the configuration of stdwin is done differently: you
have to define USE_STDWIN to the compiler prefix.
Guido van Rossum [Tue, 23 Aug 1994 14:06:18 +0000 (14:06 +0000)]
* configure.in, */Makefile*.in: OPT can now be specified in the
env at configure time and will then be put in all Makefiles as
default
* */Makefile*.in: remove lib*.a before adding to it
Guido van Rossum [Tue, 23 Aug 1994 13:51:25 +0000 (13:51 +0000)]
* Modules/Setup.*: removed all except Setup.in (huh? I thought
I'd done that already?!); disable gdbm by default
* configure.in, */Makefile*.in: OPT can now be specified in the
env at configure time and will then be put in all Makefiles as
default
* */Makefile*.in: remove lib*.a before adding to it
Guido van Rossum [Tue, 23 Aug 1994 13:49:15 +0000 (13:49 +0000)]
* Modules/makesetup: support C++ files now; these should be given
as file.C or file.cc or file.c++; C files can be given as file.c
(instead of file.o, which is still supported)