1. 18 Nov, 2007 1 commit
  2. 17 Nov, 2007 4 commits
  3. 16 Nov, 2007 10 commits
    • Thomas Heller's avatar
    • Christian Heimes's avatar
    • Christian Heimes's avatar
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      This is roughly socket2.diff from issue 1378, with a few changes applied · 39eb8fa0
      Guido van Rossum authored
      to ssl.py (no need to test whether we can dup any more).
      Regular sockets no longer have a _base, but we still have explicit
      reference counting of socket objects for the benefit of makefile();
      using duplicate sockets won't work for SSLSocket.
      39eb8fa0
    • Amaury Forgeot d'Arc's avatar
      Correct a failing test when test_import is run after test_coding: · dd9e3b87
      Amaury Forgeot d'Arc authored
      be sure to import a fresh module by removing it from sys.modules
      dd9e3b87
    • Guido van Rossum's avatar
      Cleanup of tokenizer.c. · cf171a7f
      Guido van Rossum authored
      cf171a7f
    • Guido van Rossum's avatar
      053b4f3a
    • Guido van Rossum's avatar
      Merged revisions 58947-59004 via svnmerge from · 3d392eb3
      Guido van Rossum authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r58952 | christian.heimes | 2007-11-12 10:58:08 -0800 (Mon, 12 Nov 2007) | 6 lines
      
        readline module cleanup
        fixed indention to tabs
        use Py_RETURN_NONE macro
        added more error checks to on_completion_display_matches_hook
      
        open question: Does PyList_SetItem(l, i, o) steal a reference to o in the case of an error?
      ........
        r58956 | guido.van.rossum | 2007-11-12 12:06:40 -0800 (Mon, 12 Nov 2007) | 2 lines
      
        Add the test from issue 1704621 (the issue itself is already fixed here).
      ........
        r58963 | amaury.forgeotdarc | 2007-11-13 13:54:28 -0800 (Tue, 13 Nov 2007) | 23 lines
      
        Merge from py3k branch:
        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.
      ........
        r58968 | georg.brandl | 2007-11-14 05:59:09 -0800 (Wed, 14 Nov 2007) | 2 lines
      
        Remove dead link from random docs.
      ........
        r58971 | raymond.hettinger | 2007-11-14 14:56:16 -0800 (Wed, 14 Nov 2007) | 1 line
      
        Make __fields__ read-only.  Suggested by Issac Morland
      ........
        r58972 | raymond.hettinger | 2007-11-14 15:02:30 -0800 (Wed, 14 Nov 2007) | 1 line
      
        Add test for __fields__ being read-only
      ........
        r58975 | raymond.hettinger | 2007-11-14 18:44:53 -0800 (Wed, 14 Nov 2007) | 6 lines
      
        Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
        (suprisingly, this simplifies the signature, improves clarity, and is comparably fast).
        Update the docs to reflect a previous change to the function name.
        Add an example to the docs showing how to override the default __repr__ method.
      ........
        r58976 | raymond.hettinger | 2007-11-14 18:55:42 -0800 (Wed, 14 Nov 2007) | 1 line
      
        Small improvement to the implementation of __replace__().
      ........
        r58977 | raymond.hettinger | 2007-11-14 18:58:20 -0800 (Wed, 14 Nov 2007) | 1 line
      
        Fixup example in docs.
      ........
        r58978 | raymond.hettinger | 2007-11-14 19:16:09 -0800 (Wed, 14 Nov 2007) | 1 line
      
        Example of multiple replacements.
      ........
        r58998 | raymond.hettinger | 2007-11-15 14:39:34 -0800 (Thu, 15 Nov 2007) | 1 line
      
        Add example for use cases requiring default values.
      ........
        r59000 | bill.janssen | 2007-11-15 15:03:03 -0800 (Thu, 15 Nov 2007) | 1 line
      
        add the certificate for the Python SVN repository for testing SSL
      ........
        r59004 | guido.van.rossum | 2007-11-15 16:24:44 -0800 (Thu, 15 Nov 2007) | 8 lines
      
        A patch from issue 1378 by roudkerk:
      
        Currently on Windows set_error() make use of a large array which maps
        socket error numbers to error messages.
      
        This patch removes that array and just lets PyErr_SetExcFromWindowsErr()
        generate the message by using the Win32 function FormatMessage().
      ........
      3d392eb3
    • Guido van Rossum's avatar
      Fix some minor style nits. (I'll leave adding __all__ and making the · 5b8b1555
      Guido van Rossum authored
      docstrings conform to PEP 8 to someone else.)
      5b8b1555
  4. 15 Nov, 2007 14 commits
  5. 14 Nov, 2007 4 commits
  6. 13 Nov, 2007 4 commits
    • Christian Heimes's avatar
      Another #1415 fix for Windows GUI apps · fef9bbaf
      Christian Heimes authored
      print() mustn't raise an exception when sys.stdout is None.
      fef9bbaf
    • Christian Heimes's avatar
      Fixed space -> tab · db23308c
      Christian Heimes authored
      db23308c
    • Christian Heimes's avatar
      Fix for #1415 pythonw.exe fails because std streams a missing · 58cb1b8b
      Christian Heimes authored
      After a long discussion about the problem with Windows GUI apps Guido decided that sys.stdin, stdout and stderr should be None when the C runtime library returns invalid file descriptors for the standard streams.
      
      So far the only known cases are Windows GUI apps and scripts started with pythonw on Windows. The OS restrictions are tight enough to catch the problem on other OSes.
      58cb1b8b
    • Amaury Forgeot d'Arc's avatar
      Correction for issue1265 (pdb bug with "with" statement). · f05149a2
      Amaury Forgeot d'Arc authored
      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.
      
      Seems a backport candidate, even if the case is less frequent in 2.5.
      f05149a2
  7. 12 Nov, 2007 3 commits