Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c1e150

Browse files
committed
Removed some done "to do" items.
Changed #ifdef DEBUG slightly.
1 parent ded690f commit 8c1e150

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

Python/ceval.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626

2727
/* XXX TO DO:
2828
XXX how to pass arguments to call_trace?
29-
XXX access stuff can probably dereference NULL locals?
30-
XXX need to extend apply() to be able to pass keyword args
31-
XXX need to be able to call built-in functions with keyword args
29+
XXX totally get rid of access stuff
3230
XXX speed up searching for keywords by using a dictionary
3331
XXX unknown keyword shouldn't raise KeyError?
3432
XXX document it!
@@ -47,11 +45,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4745
/* Turn this on if your compiler chokes on the big switch: */
4846
/* #define CASE_TOO_BIG 1 */
4947

50-
/* Turn this on if you want to debug the interpreter: */
51-
/* (This can be on even if NDEBUG is defined) */
52-
/* #define DEBUG 1 */
53-
54-
#if defined(DEBUG) || !defined(NDEBUG)
48+
#ifdef DEBUG
5549
/* For debugging the interpreter: */
5650
#define LLTRACE 1 /* Low-level trace feature */
5751
#define CHECKEXC 1 /* Double-check exception checking */
@@ -566,7 +560,7 @@ eval_code2(co, globals, locals,
566560

567561
/* Extract opcode and argument */
568562

569-
#ifdef DEBUG
563+
#if defined(DEBUG) || defined(LLTRACE)
570564
f->f_lasti = INSTR_OFFSET();
571565
#endif
572566

0 commit comments

Comments
 (0)