1. 13 Nov, 2007 2 commits
    • Christian Heimes's avatar
      Fix for #1415 pythonw.exe fails because std streams a missing · 0fa8e2c8
      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.
      0fa8e2c8
    • Amaury Forgeot d'Arc's avatar
      Correction for issue1265 (pdb bug with "with" statement). · a595a205
      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.
      a595a205
  2. 12 Nov, 2007 9 commits
  3. 11 Nov, 2007 1 commit
  4. 10 Nov, 2007 3 commits
    • Guido van Rossum's avatar
      Merged revisions 58886-58929 via svnmerge from · 82ae8958
      Guido van Rossum authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r58892 | guido.van.rossum | 2007-11-06 15:32:56 -0800 (Tue, 06 Nov 2007) | 2 lines
      
        Add missing "return NULL" in overflow check in PyObject_Repr().
      ........
        r58893 | raymond.hettinger | 2007-11-06 17:13:09 -0800 (Tue, 06 Nov 2007) | 1 line
      
        Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
      ........
        r58895 | raymond.hettinger | 2007-11-06 18:26:17 -0800 (Tue, 06 Nov 2007) | 1 line
      
        Optimize dict.fromkeys() with dict inputs.  Useful for resetting bag/muliset counts for example.
      ........
        r58896 | raymond.hettinger | 2007-11-06 18:45:46 -0800 (Tue, 06 Nov 2007) | 1 line
      
        Add build option for faster loop execution.
      ........
        r58900 | nick.coghlan | 2007-11-07 03:57:51 -0800 (Wed, 07 Nov 2007) | 1 line
      
        Add missing NEWS entry
      ........
        r58905 | christian.heimes | 2007-11-07 09:50:54 -0800 (Wed, 07 Nov 2007) | 1 line
      
        Backported fix for bug #1392 from py3k branch r58903.
      ........
        r58906 | christian.heimes | 2007-11-07 10:30:22 -0800 (Wed, 07 Nov 2007) | 1 line
      
        Backport of Guido's review of my patch.
      ........
        r58908 | raymond.hettinger | 2007-11-07 18:52:43 -0800 (Wed, 07 Nov 2007) | 1 line
      
        Add set.isdisjoint()
      ........
        r58915 | raymond.hettinger | 2007-11-08 10:47:51 -0800 (Thu, 08 Nov 2007) | 1 line
      
        Reposition the decref (spotted by eagle-eye norwitz).
      ........
        r58920 | georg.brandl | 2007-11-09 04:31:43 -0800 (Fri, 09 Nov 2007) | 2 lines
      
        Fix seealso link to sets docs. Do not merge to Py3k.
      ........
        r58921 | georg.brandl | 2007-11-09 05:08:48 -0800 (Fri, 09 Nov 2007) | 2 lines
      
        Fix misleading example.
      ........
        r58923 | georg.brandl | 2007-11-09 09:33:23 -0800 (Fri, 09 Nov 2007) | 3 lines
      
        Correct a comment about testing methods - nowadays most
        tests don't run directly on import.
      ........
        r58924 | martin.v.loewis | 2007-11-09 14:56:30 -0800 (Fri, 09 Nov 2007) | 2 lines
      
        Add Amaury Forgeot d'Arc.
      ........
        r58925 | raymond.hettinger | 2007-11-09 15:14:44 -0800 (Fri, 09 Nov 2007) | 1 line
      
        Optimize common case for dict.fromkeys().
      ........
        r58927 | raymond.hettinger | 2007-11-09 17:54:03 -0800 (Fri, 09 Nov 2007) | 1 line
      
        Use a freelist to speed-up block allocation and deallocation in collections.deque().
      ........
        r58929 | guido.van.rossum | 2007-11-10 14:12:24 -0800 (Sat, 10 Nov 2007) | 3 lines
      
        Issue 1416.  Add getter, setter, deleter methods to properties that can be
        used as decorators to create fully-populated properties.
      ........
      82ae8958
    • Amaury Forgeot d'Arc's avatar
      No need to include windows.h twice · bc22265e
      Amaury Forgeot d'Arc authored
      bc22265e
    • Christian Heimes's avatar
      Bug #1415 · 5569ca01
      Christian Heimes authored
      On Windows fileno(stdout) and fileno(stderr) can return an invalid file descriptor number (-2 on my machine). It happens only for pythonw.exe but not for python.exe.
      
      Catch the problem ASAP in PyFile_NewStdPrinter(). I've also removed the call to PyErr_BadInternalCall(). It was causing a seg fault because the exceptions aren't available yet.
      5569ca01
  5. 09 Nov, 2007 2 commits
  6. 08 Nov, 2007 8 commits
  7. 07 Nov, 2007 3 commits
  8. 06 Nov, 2007 5 commits
  9. 05 Nov, 2007 1 commit
    • Guido van Rossum's avatar
      Merged revisions 58817-58861 via svnmerge from · 5135b243
      Guido van Rossum authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r58822 | brett.cannon | 2007-11-02 23:47:02 -0700 (Fri, 02 Nov 2007) | 2 lines
      
        Add a missing quotation mark.
      ........
        r58840 | skip.montanaro | 2007-11-04 07:56:52 -0800 (Sun, 04 Nov 2007) | 2 lines
      
        Note change to get_dialect semantics in 2.5.  Will backport to 2.5.
      ........
        r58844 | georg.brandl | 2007-11-04 09:43:49 -0800 (Sun, 04 Nov 2007) | 2 lines
      
        Fix syntax for versionchanged markup.
      ........
        r58850 | gregory.p.smith | 2007-11-04 18:32:26 -0800 (Sun, 04 Nov 2007) | 9 lines
      
        Fixes bug 477182 on pybsddb.sf.net.  DB objects now load the flags and
        pay attention to them when opening an existing database.  This means
        that d[] behaves properly even on databases previously created with DB_DUP
        or DB_DUPSORT flags to allow duplicate keys.
      
        http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900
      
        Do not backport, this bugfix could be considered an API change.
      ........
        r58851 | gregory.p.smith | 2007-11-04 18:56:31 -0800 (Sun, 04 Nov 2007) | 3 lines
      
        Add the bsddb.db.DBEnv.lock_id_free method.
        Improve test_lock's tempdir creation and cleanup.
      ........
        r58852 | gregory.p.smith | 2007-11-05 01:06:28 -0800 (Mon, 05 Nov 2007) | 3 lines
      
         * db->get_types is only available in BerkeleyDB >= 4.2
         * get compiling with older versions of python again for a stand alone release.
      ........
        r58853 | gregory.p.smith | 2007-11-05 01:07:40 -0800 (Mon, 05 Nov 2007) | 2 lines
      
        * db->get_flags is only available in BerkeleyDB >= 4.2
      ........
        r58854 | mark.summerfield | 2007-11-05 01:22:48 -0800 (Mon, 05 Nov 2007) | 3 lines
      
        Added cross-references between the various archive file formats.
      ........
        r58857 | mark.summerfield | 2007-11-05 06:38:50 -0800 (Mon, 05 Nov 2007) | 5 lines
      
        Clarified the fact that you can have comments for individual archive
        members even though comments to the archive itself aren't currently
        supported.
      ........
      5135b243
  10. 04 Nov, 2007 3 commits
  11. 03 Nov, 2007 2 commits
  12. 02 Nov, 2007 1 commit
    • Guido van Rossum's avatar
      Merged revisions 58742-58816 via svnmerge from · ea3e1be2
      Guido van Rossum authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r58745 | georg.brandl | 2007-11-01 10:19:33 -0700 (Thu, 01 Nov 2007) | 2 lines
      
        #1364: os.lstat is available on Windows too, as an alias to os.stat.
      ........
        r58750 | christian.heimes | 2007-11-01 12:48:10 -0700 (Thu, 01 Nov 2007) | 1 line
      
        Backport of import tests for bug http://bugs.python.org/issue1293 and bug http://bugs.python.org/issue1342
      ........
        r58751 | christian.heimes | 2007-11-01 13:11:06 -0700 (Thu, 01 Nov 2007) | 1 line
      
        Removed non ASCII text from test as requested by Guido. Sorry :/
      ........
        r58753 | georg.brandl | 2007-11-01 13:37:02 -0700 (Thu, 01 Nov 2007) | 2 lines
      
        Fix markup glitch.
      ........
        r58757 | gregory.p.smith | 2007-11-01 14:08:14 -0700 (Thu, 01 Nov 2007) | 4 lines
      
        Fix bug introduced in revision 58385.  Database keys could no longer
        have NULL bytes in them.  Replace the errant strdup with a
        malloc+memcpy.  Adds a unit test for the correct behavior.
      ........
        r58758 | gregory.p.smith | 2007-11-01 14:15:36 -0700 (Thu, 01 Nov 2007) | 3 lines
      
        Undo revision 58533 58534 fixes.  Those were a workaround for
        a problem introduced by 58385.
      ........
        r58759 | gregory.p.smith | 2007-11-01 14:17:47 -0700 (Thu, 01 Nov 2007) | 2 lines
      
        false "fix" undone as correct problem was found and fixed.
      ........
        r58765 | mark.summerfield | 2007-11-02 01:24:59 -0700 (Fri, 02 Nov 2007) | 3 lines
      
        Added more file-handling related cross-references.
      ........
        r58766 | nick.coghlan | 2007-11-02 03:09:12 -0700 (Fri, 02 Nov 2007) | 1 line
      
        Fix for bug 1705170 - contextmanager swallowing StopIteration (2.5 backport candidate)
      ........
        r58784 | thomas.heller | 2007-11-02 12:10:24 -0700 (Fri, 02 Nov 2007) | 4 lines
      
        Issue #1292: On alpha, arm, ppc, and s390 linux systems the
        --with-system-ffi configure option defaults to "yes" because the
        bundled libffi sources are too old.
      ........
        r58785 | thomas.heller | 2007-11-02 12:11:23 -0700 (Fri, 02 Nov 2007) | 1 line
      
        Enable the full ctypes c_longdouble tests again.
      ........
        r58796 | georg.brandl | 2007-11-02 13:06:17 -0700 (Fri, 02 Nov 2007) | 4 lines
      
        Make "hashable" a glossary entry and clarify docs on __cmp__, __eq__ and __hash__.
        I hope the concept of hashability is better understandable now.
        Thanks to Tim Hatch for pointing out the flaws here.
      ........
      ea3e1be2