1. 16 Jul, 2002 10 commits
  2. 15 Jul, 2002 7 commits
  3. 14 Jul, 2002 4 commits
  4. 13 Jul, 2002 2 commits
  5. 12 Jul, 2002 13 commits
  6. 11 Jul, 2002 4 commits
    • Jeremy Hylton's avatar
      remove decl of unused variable · 0600ed26
      Jeremy Hylton authored
      0600ed26
    • Jeremy Hylton's avatar
      Do more robust test of whether global objects are accessible. · ee7a537b
      Jeremy Hylton authored
      PyImport_ImportModule() is not guaranteed to return a module object.
      When another type of object was returned, the PyModule_GetDict() call
      return NULL and the subsequent GetItem() seg faulted.
      
      Bug fix candidate.
      ee7a537b
    • Tim Peters's avatar
      docompare(): Use PyTuple_New instead of Py_BuildValue to build compare's · 1cbb400d
      Tim Peters authored
      arg tuple.  This was suggested on c.l.py but afraid I can't find the msg
      again for proper attribution.  For
      
          list.sort(cmp)
      
      where list is a list of random ints, and cmp is __builtin__.cmp, this
      yields an overall 50-60% speedup on my Win2K box.  Of course this is a
      best case, because the overhead of calling cmp relative to the cost of
      actually comparing two ints is at an extreme.  Nevertheless it's huge
      bang for the buck.  An additionak 20-30% can be bought by making the arg
      tuple an immortal static (avoiding all but "the first" PyTuple_New), but
      that's tricky to make correct since docompare needs to be reentrant.  So
      this picks the cherry and leaves the pits for Fred <wink>.
      
      Note that this makes no difference to the
      
          list.sort()
      
      case; an arg tuple gets built only if the user specifies an explicit
      sort function.
      1cbb400d
    • Jeremy Hylton's avatar
      c7795471