1. 14 Nov, 2007 2 commits
  2. 13 Nov, 2007 1 commit
    • Amaury Forgeot d'Arc's avatar
      Merge from py3k branch: · 0d75f091
      Amaury Forgeot d'Arc authored
      Correction for issue1265 (pdb bug with "with" statement).
      
      When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
      is called with a GeneratorExit exception set.  This leads to funny results
      if the sys.settrace function itself makes use of generators.
      A visible effect is that the settrace function is reset to None.
      Another is that the eventual "finally" block of the generator is not called.
      
      It is necessary to save/restore the exception around the call to the trace
      function.
      
      This happens a lot with py3k: isinstance() of an ABCMeta instance runs
          def __instancecheck__(cls, instance):
              """Override for isinstance(instance, cls)."""
              return any(cls.__subclasscheck__(c)
                         for c in {instance.__class__, type(instance)})
      which lets an opened generator expression each time it returns True.
      
      Backport candidate, even if the case is less frequent in 2.5.
      0d75f091
  3. 12 Nov, 2007 8 commits
  4. 11 Nov, 2007 2 commits
  5. 10 Nov, 2007 2 commits
  6. 09 Nov, 2007 5 commits
  7. 08 Nov, 2007 2 commits
  8. 07 Nov, 2007 6 commits
  9. 06 Nov, 2007 2 commits
  10. 05 Nov, 2007 6 commits
  11. 04 Nov, 2007 2 commits
  12. 03 Nov, 2007 1 commit
  13. 02 Nov, 2007 1 commit