Loading ...
Sorry, an error occurred while loading the content.
 

Patch 7.3.691

Expand Messages
  • Bram Moolenaar
    Patch 7.3.691 Problem: State specific to the Python thread is discarded. Solution: Keep state between threads. (Paul) Files: src/if_python.c ...
    Message 1 of 1 , Oct 13, 2012
      Patch 7.3.691
      Problem: State specific to the Python thread is discarded.
      Solution: Keep state between threads. (Paul)
      Files: src/if_python.c


      *** ../vim-7.3.690/src/if_python.c 2012-09-21 14:00:05.000000000 +0200
      --- src/if_python.c 2012-10-14 05:19:44.000000000 +0200
      ***************
      *** 740,748 ****
      #else
      PyMac_Initialize();
      #endif
      ! /* initialise threads */
      PyEval_InitThreads();
      !
      #ifdef DYNAMIC_PYTHON
      get_exceptions();
      #endif
      --- 740,750 ----
      #else
      PyMac_Initialize();
      #endif
      ! /* Initialise threads and save the state using PyGILState_Ensure.
      ! * Without this call, thread-specific state (such as the system trace
      ! * hook), will be lost between invocations of Python code. */
      PyEval_InitThreads();
      ! pygilstate = PyGILState_Ensure();
      #ifdef DYNAMIC_PYTHON
      get_exceptions();
      #endif
      *** ../vim-7.3.690/src/version.c 2012-10-14 04:35:16.000000000 +0200
      --- src/version.c 2012-10-14 05:14:35.000000000 +0200
      ***************
      *** 721,722 ****
      --- 721,724 ----
      { /* Add new patch number below this line */
      + /**/
      + 691,
      /**/

      --
      ARTHUR: The swallow may fly south with the sun, or the house martin or the
      plover seek warmer hot lands in winter, yet these are not strangers to
      our land.
      SOLDIER: Are you suggesting coconuts migrate?
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.