1. 29 Nis, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF bug #729096: getopt online documentation example improvement · 9b88e158
      Raymond Hettinger yazdı
      A newbie found it difficult to translate the exampe into a
      case that used only short options or long options but not both.
      He tried to shorten the tuple search but forgot the trailing comma,
      The appropriate pattern is an equality check.
      
      Revised the example to point him in the right direction.
      9b88e158
  2. 27 Nis, 2003 1 kayıt (commit)
  3. 26 Nis, 2003 1 kayıt (commit)
  4. 25 Nis, 2003 7 kayıt (commit)
  5. 24 Nis, 2003 3 kayıt (commit)
  6. 23 Nis, 2003 3 kayıt (commit)
  7. 19 Nis, 2003 2 kayıt (commit)
  8. 18 Nis, 2003 1 kayıt (commit)
  9. 17 Nis, 2003 1 kayıt (commit)
  10. 16 Nis, 2003 1 kayıt (commit)
  11. 11 Nis, 2003 1 kayıt (commit)
    • Neal Norwitz's avatar
      Backport: · 9976fdf8
      Neal Norwitz yazdı
      Fix SF bug #697220, string.strip implementation/doc mismatch
      
      Attempt to make all the various string/unicode *strip methods the same.
       * Doc - add doc for when functions were added
       * UserString
       * string/unicode object methods
       * string module functions
      'chars' is used for the last parameter everywhere.
      9976fdf8
  12. 10 Nis, 2003 1 kayıt (commit)
    • Guido van Rossum's avatar
      Backport: · ef582aba
      Guido van Rossum yazdı
      PyErr_NormalizeException(): in the type==NULL test, we should simply
      return.  Setting an exception can mess with the exception state, and
      continuing is definitely wrong (since type is dereferenced later on).
      Some code that calls this seems to be prepared for a NULL exception
      type, so let's be safe rather than sorry and simply assume there's
      nothing to normalize in this case.
      ef582aba
  13. 09 Nis, 2003 3 kayıt (commit)
  14. 08 Nis, 2003 5 kayıt (commit)
  15. 04 Nis, 2003 3 kayıt (commit)
    • Barry Warsaw's avatar
      Backporting: · d9004253
      Barry Warsaw yazdı
          typed_subpart_iterator(): Fix these to use non-deprecated APIs,
          i.e. get_content_maintype() and get_content_subtype().
      d9004253
    • Barry Warsaw's avatar
      Backporting email 2.5.1 patches. · 27a93d70
      Barry Warsaw yazdı
      27a93d70
    • Barry Warsaw's avatar
      Backporting: · 4a1d0f56
      Barry Warsaw yazdı
          revision 1.27
          date: 2003/03/30 20:46:47;  author: bwarsaw;  state: Exp;  lines: +3 -3
          __unicode__(): Fix the logic for calculating whether to add a
          separating space or not between encoded chunks.  Closes SF bug
          #710498.
      4a1d0f56
  16. 03 Nis, 2003 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Fix memory corruption in garbage collection. · f9535007
      Jeremy Hylton yazdı
      The move_finalizers() routine checks each object in the unreachable
      list to see if it has a finalizer.  If it does, it is moved to the
      finalizers list.  The collector checks by calling, effectively,
      hasattr(obj, "__del__").  The hasattr() call can result in an
      arbitrary amount of Python code being run, because it will invoke
      getattr hooks on obj.
      
      If a getattr() hook is run from move_finalizers(), it may end up
      resurrecting or deallocating objects in the unreachable list.  In
      fact, it's possible that the hook causes the next object in the list
      to be deallocated.  That is, the object pointed to by gc->gc.gc_next
      may be freed before has_finalizer() returns.
      
      The problem with the previous revision is that it followed
      gc->gc.gc_next before calling has_finalizer().  If has_finalizer()
      gc->happened to deallocate the object FROM_GC(gc->gc.gc_next), then
      the next time through the loop gc would point to freed memory.  The
      fix is to always follow the next pointer after calling
      has_finalizer().
      
      Note that Python 2.3 does not have this problem, because
      has_finalizer() checks the tp_del slot and never runs Python code.
      
      Tim, Barry, and I peed away the better part of two days tracking this
      down.
      f9535007
  17. 01 Nis, 2003 1 kayıt (commit)
  18. 31 Mar, 2003 4 kayıt (commit)