1. 23 Ock, 2007 2 kayıt (commit)
    • Martin v. Löwis's avatar
      Make PyTraceBack_Here use the current thread, not the · 601d03a5
      Martin v. Löwis yazdı
      frame's thread state. Fixes #1579370.
      601d03a5
    • Thomas Wouters's avatar
      Backport trunk revision 53527: · e471317a
      Thomas Wouters yazdı
      SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize
      
      When running the interpreter in an environment that would cause it to set
      stdout/stderr/stdin's encoding, having a sitecustomize that would replace
      them with something other than PyFile objects would crash the interpreter.
      Fix it by simply ignoring the encoding-setting for non-files.
      
      This could do with a test, but I can think of no maintainable and portable
      way to test this bug, short of adding a sitecustomize.py to the buildsystem
      and have it always run with it (hmmm....)
      e471317a
  2. 06 Ock, 2007 1 kayıt (commit)
  3. 05 Ock, 2007 1 kayıt (commit)
    • Neal Norwitz's avatar
      Backport: · 7770f9f6
      Neal Norwitz yazdı
      Prevent crash on shutdown which can occur if we are finalizing
      and the module dict has been cleared already and some object
      raises a warning (like in a __del__).
      7770f9f6
  4. 29 Kas, 2006 1 kayıt (commit)
  5. 04 Kas, 2006 1 kayıt (commit)
  6. 28 Eki, 2006 2 kayıt (commit)
    • Neal Norwitz's avatar
      Backport 52504: · 2f0940b6
      Neal Norwitz yazdı
      Fix bug #1565514, SystemError not raised on too many nested blocks.
      It seems like this should be a different error than SystemError, but
      I don't have any great ideas and SystemError was raised in 2.4 and earlier.
      2f0940b6
    • Neal Norwitz's avatar
      Backport 52501: · b5fdf0da
      Neal Norwitz yazdı
      Add some asserts.  In sysmodule, I think these were to try to silence
      some warnings from Klokwork.  They verify the assumptions of the format
      of svn version output.
      
      The assert in the thread module helped debug a problem on HP-UX.
      b5fdf0da
  7. 27 Eki, 2006 2 kayıt (commit)
  8. 08 Eki, 2006 2 kayıt (commit)
  9. 04 Eki, 2006 1 kayıt (commit)
    • Armin Rigo's avatar
      Forward-port of r52136: a review of overflow-detecting code. · 4b63c21d
      Armin Rigo yazdı
      * unified the way intobject, longobject and mystrtoul handle
        values around -sys.maxint-1.
      
      * in general, trying to entierely avoid overflows in any computation
        involving signed ints or longs is extremely involved.  Fixed a few
        simple cases where a compiler might be too clever (but that's all
        guesswork).
      
      * more overflow checks against bad data in marshal.c.
      
      * 2.5 specific: fixed a number of places that were still confusing int
        and Py_ssize_t.  Some of them could potentially have caused
        "real-world" breakage.
      
      * list.pop(x): fixing overflow issues on x was messy.  I just reverted
        to PyArg_ParseTuple("n"), which does the right thing.  (An obscure
        test was trying to give a Decimal to list.pop()... doesn't make
        sense any more IMHO)
      
      * trying to write a few tests...
      4b63c21d
  10. 25 Eyl, 2006 2 kayıt (commit)
  11. 11 Eyl, 2006 2 kayıt (commit)
    • Neal Norwitz's avatar
      Building with HP's cc on HP-UX turned up a couple of problems. · 0bcafac2
      Neal Norwitz yazdı
      _PyGILState_NoteThreadState was declared as static inconsistently.
      Make it static as it's not necessary outside of this module.
      
      Some tests failed because errno was reset to 0. (I think the tests
      that failed were at least: test_fcntl and test_mailbox).
      Ensure that errno doesn't change after a call to Py_END_ALLOW_THREADS.
      This only affected debug builds.
      
      This needs to be ported to HEAD.  I'll try to remember to do that tomorrow.
      (Anyone, feel free to port it.)
      0bcafac2
    • Neal Norwitz's avatar
      Properly handle a NULL returned from PyArena_New(). · ece448ef
      Neal Norwitz yazdı
      Klocwork #364.  Will port to head.
      ece448ef
  12. 06 Eyl, 2006 1 kayıt (commit)
  13. 05 Eyl, 2006 2 kayıt (commit)
  14. 21 Agu, 2006 1 kayıt (commit)
    • Neal Norwitz's avatar
      Backport 51443: · bebdc9e5
      Neal Norwitz yazdı
      Handle a few more error conditions.
      
      Klocwork 301 and 302.  Will backport.
      bebdc9e5
  15. 13 Agu, 2006 2 kayıt (commit)
  16. 12 Agu, 2006 8 kayıt (commit)
  17. 10 Agu, 2006 1 kayıt (commit)
    • Tim Peters's avatar
      Followup to bug #1069160. · 4643c2fd
      Tim Peters yazdı
      PyThreadState_SetAsyncExc():  internal correctness changes wrt
      refcount safety and deadlock avoidance.  Also added a basic test
      case (relying on ctypes) and repaired the docs.
      4643c2fd
  18. 09 Agu, 2006 2 kayıt (commit)
  19. 06 Agu, 2006 1 kayıt (commit)
  20. 04 Agu, 2006 4 kayıt (commit)
  21. 30 Tem, 2006 1 kayıt (commit)