1. 18 Eki, 2009 1 kayıt (commit)
  2. 04 Eki, 2009 1 kayıt (commit)
    • Benjamin Peterson's avatar
      Merged revisions 74841 via svnmerge from · 0df35a93
      Benjamin Peterson yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r74841 | thomas.wouters | 2009-09-16 14:55:54 -0500 (Wed, 16 Sep 2009) | 23 lines
      
      
        Fix issue #1590864, multiple threads and fork() can cause deadlocks, by
        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.
      ........
      0df35a93
  3. 28 Eyl, 2009 1 kayıt (commit)
  4. 27 Eyl, 2009 1 kayıt (commit)
  5. 16 Eyl, 2009 1 kayıt (commit)
  6. 06 Eyl, 2009 1 kayıt (commit)
  7. 22 Tem, 2009 1 kayıt (commit)
  8. 21 Tem, 2009 1 kayıt (commit)
    • Alexandre Vassalotti's avatar
      Merged revisions 72487-72488,72879 via svnmerge from · 7b82b40a
      Alexandre Vassalotti yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r72487 | jeffrey.yasskin | 2009-05-08 17:51:06 -0400 (Fri, 08 May 2009) | 7 lines
      
        PyCode_NewEmpty:
        Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
        are trying to build an empty code object, usually to put it in a dummy frame
        object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
        just the filename, function name, and first line number, instead of also
        requiring lots of code internals.
      ........
        r72488 | jeffrey.yasskin | 2009-05-08 18:23:21 -0400 (Fri, 08 May 2009) | 13 lines
      
        Issue 5954, PyFrame_GetLineNumber:
        Most uses of PyCode_Addr2Line
        (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
        the line number of a specified frame, but there's no way to do that directly.
        Forcing people to go through the code object makes them know more about the
        guts of the interpreter than they should need.
      
        The remaining uses of PyCode_Addr2Line seem to be getting the line from a
        traceback (for example,
        http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line),
        which is replaced by the tb_lineno field.  So we may be able to deprecate
        PyCode_Addr2Line entirely for external use.
      ........
        r72879 | jeffrey.yasskin | 2009-05-23 19:23:01 -0400 (Sat, 23 May 2009) | 14 lines
      
        Issue #6042:
        lnotab-based tracing is very complicated and isn't documented very well.  There
        were at least 3 comment blocks purporting to document co_lnotab, and none did a
        very good job. This patch unifies them into Objects/lnotab_notes.txt which
        tries to completely capture the current state of affairs.
      
        I also discovered that we've attached 2 layers of patches to the basic tracing
        scheme. The first layer avoids jumping to instructions that don't start a line,
        to avoid problems in if statements and while loops.  The second layer
        discovered that jumps backward do need to trace at instructions that don't
        start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
        added a special case for backward jumps within the same line. I replaced these
        patches by just treating forward and backward jumps differently.
      ........
      7b82b40a
  9. 03 Tem, 2009 1 kayıt (commit)
  10. 02 Tem, 2009 2 kayıt (commit)
  11. 01 Tem, 2009 2 kayıt (commit)
  12. 30 Haz, 2009 1 kayıt (commit)
  13. 28 Haz, 2009 3 kayıt (commit)
    • Mark Dickinson's avatar
      Merged revisions 73660 via svnmerge from · e9eb7b65
      Mark Dickinson yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r73660 | mark.dickinson | 2009-06-28 23:37:13 +0100 (Sun, 28 Jun 2009) | 1 line
      
        Remove unused stdint.h includes
      ........
      e9eb7b65
    • Benjamin Peterson's avatar
      Merged revisions… · 78565b22
      Benjamin Peterson yazdı
      Merged revisions 73376,73393,73398,73400,73404-73405,73409,73419-73421,73432,73457,73460,73485-73486,73488-73489,73501-73502,73513-73514 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r73376 | benjamin.peterson | 2009-06-11 17:29:23 -0500 (Thu, 11 Jun 2009) | 1 line
      
        remove check for case handled in sub-function
      ........
        r73393 | alexandre.vassalotti | 2009-06-12 13:56:57 -0500 (Fri, 12 Jun 2009) | 2 lines
      
        Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini.
      ........
        r73398 | alexandre.vassalotti | 2009-06-12 15:57:12 -0500 (Fri, 12 Jun 2009) | 3 lines
      
        Add const qualifier to PyErr_SetFromErrnoWithFilename and to
        PyErr_SetFromErrnoWithUnicodeFilename.
      ........
        r73400 | alexandre.vassalotti | 2009-06-12 16:43:47 -0500 (Fri, 12 Jun 2009) | 2 lines
      
        Delete outdated make file for building the parser with MSVC 6.
      ........
        r73404 | benjamin.peterson | 2009-06-12 20:40:00 -0500 (Fri, 12 Jun 2009) | 1 line
      
        keep the slice.step field as NULL if no step expression is given
      ........
        r73405 | benjamin.peterson | 2009-06-12 22:46:30 -0500 (Fri, 12 Jun 2009) | 1 line
      
        prevent import statements from assigning to None
      ........
        r73409 | benjamin.peterson | 2009-06-13 08:06:21 -0500 (Sat, 13 Jun 2009) | 1 line
      
        allow importing from a module named None if it has an 'as' clause
      ........
        r73419 | benjamin.peterson | 2009-06-13 11:19:19 -0500 (Sat, 13 Jun 2009) | 1 line
      
        set Print.values to NULL if there are no values
      ........
        r73420 | benjamin.peterson | 2009-06-13 12:08:53 -0500 (Sat, 13 Jun 2009) | 1 line
      
        give a better error message when deleting ()
      ........
        r73421 | benjamin.peterson | 2009-06-13 15:23:33 -0500 (Sat, 13 Jun 2009) | 1 line
      
        when no module is given in a 'from' relative import, make ImportFrom.module NULL
      ........
        r73432 | amaury.forgeotdarc | 2009-06-14 16:20:40 -0500 (Sun, 14 Jun 2009) | 3 lines
      
        #6227: Because of a wrong indentation, the test was not testing what it should.
        Ensure that the snippet in doctest_aliases actually contains aliases.
      ........
        r73457 | benjamin.peterson | 2009-06-16 18:13:09 -0500 (Tue, 16 Jun 2009) | 1 line
      
        add underscores
      ........
        r73460 | benjamin.peterson | 2009-06-16 22:23:04 -0500 (Tue, 16 Jun 2009) | 1 line
      
        remove unused 'encoding' member from the compiler struct
      ........
        r73485 | benjamin.peterson | 2009-06-19 17:07:47 -0500 (Fri, 19 Jun 2009) | 1 line
      
        remove duplicate test
      ........
        r73486 | benjamin.peterson | 2009-06-19 17:09:17 -0500 (Fri, 19 Jun 2009) | 1 line
      
        add missing assertion #6313
      ........
        r73488 | benjamin.peterson | 2009-06-19 17:16:28 -0500 (Fri, 19 Jun 2009) | 1 line
      
        show that this one isn't used
      ........
        r73489 | benjamin.peterson | 2009-06-19 17:21:12 -0500 (Fri, 19 Jun 2009) | 1 line
      
        use closures
      ........
        r73501 | benjamin.peterson | 2009-06-21 18:01:07 -0500 (Sun, 21 Jun 2009) | 1 line
      
        don't need to add the name 'lambda' as assigned
      ........
        r73502 | benjamin.peterson | 2009-06-21 18:03:36 -0500 (Sun, 21 Jun 2009) | 1 line
      
        remove tmpname support since it's no longer used
      ........
        r73513 | benjamin.peterson | 2009-06-22 20:18:57 -0500 (Mon, 22 Jun 2009) | 1 line
      
        fix grammar
      ........
        r73514 | benjamin.peterson | 2009-06-22 22:01:56 -0500 (Mon, 22 Jun 2009) | 1 line
      
        remove some unused symtable constants
      ........
      78565b22
    • Benjamin Peterson's avatar
      Merged revisions 72912,72920,72940 via svnmerge from · 876b2f28
      Benjamin Peterson yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r72912 | benjamin.peterson | 2009-05-25 08:13:44 -0500 (Mon, 25 May 2009) | 5 lines
      
        add a SETUP_WITH opcode
      
        It speeds up the with statement and correctly looks up the special
        methods involved.
      ........
        r72920 | benjamin.peterson | 2009-05-25 15:12:57 -0500 (Mon, 25 May 2009) | 1 line
      
        take into account the fact that SETUP_WITH pushes a finally block
      ........
        r72940 | benjamin.peterson | 2009-05-26 07:49:59 -0500 (Tue, 26 May 2009) | 1 line
      
        teach the peepholer about SETUP_WITH
      ........
      876b2f28
  14. 27 Haz, 2009 2 kayıt (commit)
  15. 26 Haz, 2009 1 kayıt (commit)
  16. 13 Haz, 2009 2 kayıt (commit)
  17. 01 Haz, 2009 1 kayıt (commit)
  18. 30 May, 2009 2 kayıt (commit)
  19. 29 May, 2009 1 kayıt (commit)
  20. 26 May, 2009 1 kayıt (commit)
  21. 25 May, 2009 1 kayıt (commit)
  22. 20 May, 2009 1 kayıt (commit)
  23. 17 May, 2009 2 kayıt (commit)
  24. 09 May, 2009 1 kayıt (commit)
  25. 08 May, 2009 1 kayıt (commit)
  26. 06 May, 2009 2 kayıt (commit)
  27. 05 May, 2009 3 kayıt (commit)
  28. 04 May, 2009 1 kayıt (commit)
  29. 03 May, 2009 1 kayıt (commit)