Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 3610:d0a97ac25dab legacy-trunk
Removed some done "to do" items.
Changed #ifdef DEBUG slightly.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 24 May 1996 20:49:24 +0000 |
| parents | dafc8a10b186 |
| children | 581f073f071d |
line wrap: on
line diff
--- a/Python/ceval.c Fri May 24 20:48:31 1996 +0000 +++ b/Python/ceval.c Fri May 24 20:49:24 1996 +0000 @@ -26,9 +26,7 @@ /* XXX TO DO: XXX how to pass arguments to call_trace? - XXX access stuff can probably dereference NULL locals? - XXX need to extend apply() to be able to pass keyword args - XXX need to be able to call built-in functions with keyword args + XXX totally get rid of access stuff XXX speed up searching for keywords by using a dictionary XXX unknown keyword shouldn't raise KeyError? XXX document it! @@ -47,11 +45,7 @@ /* Turn this on if your compiler chokes on the big switch: */ /* #define CASE_TOO_BIG 1 */ -/* Turn this on if you want to debug the interpreter: */ -/* (This can be on even if NDEBUG is defined) */ -/* #define DEBUG 1 */ - -#if defined(DEBUG) || !defined(NDEBUG) +#ifdef DEBUG /* For debugging the interpreter: */ #define LLTRACE 1 /* Low-level trace feature */ #define CHECKEXC 1 /* Double-check exception checking */ @@ -566,7 +560,7 @@ /* Extract opcode and argument */ -#ifdef DEBUG +#if defined(DEBUG) || defined(LLTRACE) f->f_lasti = INSTR_OFFSET(); #endif
