Commit Graph

1990 Commits

Author SHA1 Message Date
Guido van Rossum a110aa658b * 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
1994-08-29 12:50:44 +00:00
Guido van Rossum bf8c0e336f mods by Andrew Kuchling to implement
pow(x,y,z) == pow(x,y)%z, but without incurring overflow
Correct problems found by THINK C 6.0
1994-08-29 12:48:32 +00:00
Guido van Rossum eb1fafcec1 New patches by Andrew to fix various problems
Add cast for Lance
1994-08-29 12:47:19 +00:00
Guido van Rossum 6cd2fe043b Correct problems found by THINK C 6.0 1994-08-29 12:45:32 +00:00
Guido van Rossum f4b1a64a21 * Parser/tokenizer.c: backup over illegal newline in string
literal (for "completeness" test)
1994-08-29 12:43:07 +00:00
Guido van Rossum bd0389d5fd don't call strncpy(str, NULL, 0) 1994-08-29 12:25:45 +00:00
Guido van Rossum 4ca6c9db81 * Python/compile.c (com_argdefs, com_arglist): avoid referencing
CHILD(n,i) for i >= NCH(n)
1994-08-29 12:16:12 +00:00
Guido van Rossum 3a24181837 err_clear: clear interpreter stack trace 1994-08-29 12:14:12 +00:00
Guido van Rossum 13836d9e6d add function name to traceback info
MPW fixes
1994-08-29 12:09:58 +00:00
Guido van Rossum d2002c79f0 Added PyArg_NoArgs(v) 1994-08-29 10:55:31 +00:00
Guido van Rossum ff18df0eb3 For THINK C 6.0 1994-08-29 10:55:19 +00:00
Guido van Rossum 3bb5448767 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)
1994-08-29 10:52:58 +00:00
Guido van Rossum 7b1e974b4b 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
1994-08-29 10:46:42 +00:00
Guido van Rossum 0e3da7ba50 Makefile: add $(OPT) to linking line
tokenizer.c: move tok_backup call around
1994-08-29 10:44:10 +00:00
Guido van Rossum ba941eba67 MPW changes 1994-08-29 10:43:12 +00:00
Guido van Rossum 8e1f8dd094 Restructured MPW notes 1994-08-29 09:14:14 +00:00
Guido van Rossum 8ce65b4cde README, Makfiles and `buildall' script to build Python under MPW 3.2. 1994-08-29 08:58:39 +00:00
Guido van Rossum 739267b7c3 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.
1994-08-29 08:42:37 +00:00
Guido van Rossum e783444440 Intermediate version of changes after porting to MPW 3.2 1994-08-26 09:09:48 +00:00
Guido van Rossum f0171a1626 * 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
1994-08-23 14:06:18 +00:00
Guido van Rossum c561e5dd58 The usual... 1994-08-23 13:52:46 +00:00
Guido van Rossum 794b93ea8a * 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
1994-08-23 13:51:25 +00:00
Guido van Rossum aa0f4c73e5 * Modules/signalmodule.c: added pause(). 1994-08-23 13:49:37 +00:00
Guido van Rossum 0b498beea2 * 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)
1994-08-23 13:49:15 +00:00
Guido van Rossum 794d81313b * Modules/posixmodule.c: some more NT changes 1994-08-23 13:48:48 +00:00
Guido van Rossum 9731d4470f * Modules/config.c.in: change mac specific things 1994-08-23 13:48:30 +00:00
Guido van Rossum d250ee2413 * Parser/tokenizer.c: backup over illegal newline in string
literal (for "completeness" test)
	* */Makefile*.in: remove lib*.a before adding to it
1994-08-23 13:38:57 +00:00
Guido van Rossum b4f066da49 Include/node.h: make some fields short to save space during
parsing
1994-08-23 13:37:43 +00:00
Guido van Rossum b0f3c82a3b Added macmain.c (separate Mac specific main prog); bump version to 1.1 1994-08-23 13:34:25 +00:00
Guido van Rossum 7aeb4b9ce8 * Lib/linecache.py: don't crash on empty filename
* Lib/macpath.py: don't return trailing colon for dirname()
	(XXX won't do for volume names -- but otherwise glob(':*:*.py')
	loops forever)
	* Lib/traceback.py: print SyntaxError correctly
	* Lib/stat.py: moved to posixstat.py; added macstat.py which has
	the constants for the Mac; and created new stat.py which includes
	the right one
	* Lib/urllib.py: fix caching bug (by disabling the cache)
1994-08-23 13:32:20 +00:00
Guido van Rossum 9e1e149a5f * Lib/sgi/flp.py: fix caching bug (always write the whole file to
the cache!)
1994-08-23 13:29:21 +00:00
Guido van Rossum 29e7af07f0 Some more changes 1994-08-23 13:28:34 +00:00
Guido van Rossum bd851cd167 * Doc/libtime.tex: get rid of references to millitime() and
millisleep(); document clock()

	* Doc/ref6.tex (section{Assignment statements}): added warning
	about overlaps in lhs of assignment (e.g. "i, x[i] = 1, 2")
1994-08-23 13:26:22 +00:00
Guido van Rossum d849a4838d Description of how to build Python for the Mac. 1994-08-20 21:55:48 +00:00
Guido van Rossum 24f4850377 errors.c: clear traceback too.
Makefile.in: remove lib*.a before creating new one.
1994-08-19 15:37:11 +00:00
Guido van Rossum b1ba03f045 Match new configure.in 1994-08-19 15:34:50 +00:00
Guido van Rossum 4e8af445ec Simplify value of INSTALL (always 'cp').
Pass value of OPT from configure environment to Makefile.
Add check for limits.h.
Use <directory>/libreadline.a instead of -lreadline.
1994-08-19 15:33:54 +00:00
Guido van Rossum 5622ef3cbb Moved mpzpi.py to scripts subdirectory 1994-08-19 15:09:21 +00:00
Guido van Rossum 4040ed018e Add test for mpz module 1994-08-19 15:09:02 +00:00
Guido van Rossum 386a554fad Added pathfix 1994-08-19 15:03:41 +00:00
Guido van Rossum 9af22a037f newslist.py: Added search for .newslistrc.py;
pindent.py: use /usr/local/bin/python;
pathfix.py: new script to fix #! lines in a group of scripts.
1994-08-19 15:02:57 +00:00
Guido van Rossum 72824bab44 Move all code from version.c into config.c 1994-08-19 12:03:04 +00:00
Guido van Rossum 0c7095484e Changes for Mac 1994-08-19 12:01:32 +00:00
Guido van Rossum a715274421 No need to define THINK_C any more 1994-08-19 11:16:32 +00:00
Guido van Rossum d4d7728440 Updates for THINK C 6.0. Moved the necessary UNIX emulation routines here. 1994-08-19 10:51:31 +00:00
Guido van Rossum e89bc75048 Changes for dynamic linking under NT 1994-08-18 16:18:13 +00:00
Guido van Rossum 14aa5da824 version.c is no longer... 1994-08-18 16:03:36 +00:00
Guido van Rossum 6a3eb5f14d Changes to make it work and compile on NT, by Mark Hammond.
(NT changes for posixmodule.c re-invented by Guido.)
1994-08-18 15:42:46 +00:00
Guido van Rossum 8a38a6b99f Moved to Include and changed format to "<complete_version>" 1994-08-17 14:39:22 +00:00
Guido van Rossum a322862eff Added #diagram:... comments for Kees Blom's railroad diagram generator 1994-08-17 13:19:13 +00:00