Guido van Rossum
408027ea46
Rename DEBUG macro to Py_DEBUG
1996-12-30 16:17:54 +00:00
Guido van Rossum
0aa9ee65ab
Moved the raise logic out of the main interpreter loop to a separate function.
...
The raise logic has one additional feature: if you raise <class>,
<value> where <value> is not an instance, it will construct an
instance using <value> as argument. If <value> is None, <class> is
instantiated without arguments. If <value> is a tuple, it is used as
the argument list.
This feature is intended to make it easier to upgrade code from using
string exceptions to using class exceptions; without this feature,
you'd have to change every raise statement from ``raise X'' to ``raise
X()'' and from ``raise X, y'' to ``raise X(y)''. The latter is still
the recommended form (because it has no ambiguities about the number
of arguments), but this change makes the transition less painful.
1996-12-10 18:07:35 +00:00
Guido van Rossum
150b2df682
Change the Don Beaudry hack into the Don B + Jim F hack; now, if *any*
...
base class is special it gets invoked.
Make gcc -Wall happy.
1996-12-05 23:17:11 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
6d43c5de5a
Raise TypeError, not KeyError, on unknown keyword argument.
1996-08-19 22:09:16 +00:00
Guido van Rossum
bf51afa049
Don't test here for negative number to float power; that belongs in
...
floatobject.c.
1996-08-16 20:49:17 +00:00
Guido van Rossum
0dfcf753ad
Disable support for access statement
1996-08-12 22:00:53 +00:00
Guido van Rossum
3b9c6677f8
Better error message if stride used on normal sequence object
1996-07-30 18:40:29 +00:00
Guido van Rossum
8861b74445
Changes for slice and ellipses
1996-07-30 16:49:37 +00:00
Guido van Rossum
3b4da59cd6
Renamed static pow() to powerop() to avoid name conflict in some compilers.
1996-06-19 21:49:17 +00:00
Guido van Rossum
8c1e150215
Removed some done "to do" items.
...
Changed #ifdef DEBUG slightly.
1996-05-24 20:49:24 +00:00
Guido van Rossum
5e3e426961
removed sime redundant header includes and decls.
1996-05-23 22:49:38 +00:00
Guido van Rossum
50564e8dae
changes for complex and power (**) operator
1996-01-12 01:13:16 +00:00
Guido van Rossum
72b56e831f
don't return from main loop when error occurs
1995-12-10 04:57:42 +00:00
Guido van Rossum
9d78d8d2fb
spell TraceBack with capital B
1995-09-18 21:29:36 +00:00
Guido van Rossum
e3e61c1642
empty kw dict is ok for builtins
1995-08-04 04:14:47 +00:00
Guido van Rossum
0db1ef96ac
fix bogus DECREF in finally clause
1995-07-28 23:06:00 +00:00
Guido van Rossum
ff8b494cf0
changes for keyword args to built-in functions and classes
1995-07-26 18:16:42 +00:00
Guido van Rossum
681d79aaf3
keyword arguments and faster calls
1995-07-18 14:51:37 +00:00
Guido van Rossum
f10570b9eb
3rd arg for raise; INCOMPLETE keyword parameter passing (currently f(kw=value) is seen as f('kw', value))
1995-07-07 22:53:21 +00:00
Guido van Rossum
6f9e433ab3
fix dusty debugging macros
1995-03-29 16:57:48 +00:00
Guido van Rossum
684ed9891b
remove unused code for tp_call
1995-03-22 10:09:02 +00:00
Guido van Rossum
8d617a60b1
various tuple related optimizations; remove unused b/w compat code from ceval.c
1995-03-09 12:12:11 +00:00
Guido van Rossum
1d339e8c35
fix bug in try-finally with class exceptions; declare different func pointers for different uses
1995-02-17 15:04:21 +00:00
Guido van Rossum
24c137432c
call __import__() with 4 args instead of 1
1995-02-14 09:42:43 +00:00