1. 20 Sep, 2009 2 commits
  2. 19 Sep, 2009 7 commits
  3. 18 Sep, 2009 14 commits
  4. 17 Sep, 2009 12 commits
  5. 16 Sep, 2009 5 commits
    • Mark Dickinson's avatar
      Issue #6713: Improve performance of str(n) and repr(n) for integers n · aa2adc82
      Mark Dickinson authored
      (up to 3.1 times faster in tests), by special-casing base 10 in
      _PyLong_Format.  (Backport of r74851 from py3k.)
      aa2adc82
    • Thomas Wouters's avatar
      Add news entry for r74841. · 2920adb4
      Thomas Wouters authored
      2920adb4
    • Georg Brandl's avatar
      #6844: do not emit DeprecationWarnings on access if Exception.message has been set by the user. · 0674d3fb
      Georg Brandl authored
      This works by always setting it in __dict__, except when it's implicitly set in __init__.
      0674d3fb
    • Mark Dickinson's avatar
      Remove outdated include; this include was breaking OS X builds using · 4676048b
      Mark Dickinson authored
      non-Apple gcc4.3 and gcc4.4 (because CoreFoundation/CoreFoundation.h
      won't compile under non-Apple gcc).
      4676048b
    • Thomas Wouters's avatar
      Fix issue #1590864, multiple threads and fork() can cause deadlocks, by · c4dcb380
      Thomas Wouters authored
      acquiring the import lock around fork() calls. This prevents other threads
      from having that lock while the fork happens, and is the recommended way of
      dealing with such issues. There are two other locks we care about, the GIL
      and the Thread Local Storage lock. The GIL is obviously held when calling
      Python functions like os.fork(), and the TLS lock is explicitly reallocated
      instead, while also deleting now-orphaned TLS data.
      
      This only fixes calls to os.fork(), not extension modules or embedding
      programs calling C's fork() directly. Solving that requires a new set of API
      functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
      warning explaining the problem to the documentation in the mean time.
      
      This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
      getting the import lock reallocated, seemingly to avoid this very same
      problem. This is not the right approach, because the import lock is a
      re-entrant one, and reallocating would do the wrong thing when forking while
      holding the import lock.
      
      Will backport to 2.6, minus the tiny AIX behaviour change.
      c4dcb380