Configure Python with  pydebug when SAGE_DEBUG is set

Imported from <a href="http://trac.sagemath.org/sage_trac/ticket/13864">trac #13864</a>.

crash log with gc_tester.patch

Reported by: jpflori

Component: misc

CC: vbraun,, SimonKing

Report Upstream: N/A

Authors: 

Dependencies: <a href="http://trac.sagemath.org/sage_trac/ticket/10352">trac #10352</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13832">trac #13832</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13865">trac #13865</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13867">trac #13867</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13868">trac #13868</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13876">trac #13876</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13878">trac #13878</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13882">trac #13882</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13883">trac #13883</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13889">trac #13889</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13896">trac #13896</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/13921">trac #13921</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/14059">trac #14059</a>, <a href="http://trac.sagemath.org/sage_trac/ticket/14067">trac #14067</a>

Work issues: 

Reviewers: Volker Braun, Simon King, Jean-Pierre Flori

Merged in: 

Attachments: <ol><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13864/gc_tester.patch">gc_tester.patch: Evil patch to trick Python into running a garbage collection in the TripleDictEraser callback</a> by vbraun at 20121231T16:48:58</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13864/gc_tester.2.patch">gc_tester.2.patch: Evil patch to trick Python into running a garbage collection in the TripleDictEraser callback</a> by vbraun at 20121231T16:48:59</li><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13864/sage_crash_wZk24Q.log">sage_crash_wZk24Q.log: crash log with gc_tester.patch</a> by vbraun at 20121231T16:52:15</li></ol>