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

AttributeError module object has no attribute stderror

Expand Messages
  • Roland Puntaier
    Hello, the above error is issued when closing gvim with python3 configured (for vim it s displayed too short to be seen). With this patch it s gone: diff -r
    Message 1 of 2 , Nov 18, 2012
    • 0 Attachment
      Hello,

      the above error is issued when closing gvim with python3 configured (for
      vim it's displayed too short to be seen). With this patch it's gone:

      diff -r 57e8b75298d6 src/if_python3.c
      --- a/src/if_python3.c Tue Oct 23 05:35:34 2012 +0200
      +++ b/src/if_python3.c Sun Nov 18 10:11:49 2012 +0100
      @@ -657,7 +657,6 @@
      static PyObject *globals;

      static int PythonIO_Init(void);
      -static void PythonIO_Fini(void);
      PyMODINIT_FUNC Py3Init_vim(void);

      /******************************************************
      @@ -685,7 +684,6 @@
      // acquire lock before finalizing
      pygilstate = PyGILState_Ensure();

      - PythonIO_Fini();
      Py_Finalize();
      }

      @@ -989,13 +987,6 @@
      return PythonIO_Init_io();
      }

      - static void
      -PythonIO_Fini(void)
      -{
      - PySys_SetObject("stdout", NULL);
      - PySys_SetObject("stderr", NULL);
      -}
      -
      /******************************************************
      * 3. Implementation of the Vim module for Python
      */

      Regards,
      Roland

      --
      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
    • Bram Moolenaar
      ... Thanks, I ll include it. -- Despite the cost of living, have you noticed how it remains so popular? /// Bram Moolenaar -- Bram@Moolenaar.net --
      Message 2 of 2 , Nov 20, 2012
      • 0 Attachment
        Roland Puntaier wrote:

        > the above error is issued when closing gvim with python3 configured (for
        > vim it's displayed too short to be seen). With this patch it's gone:

        Thanks, I'll include it.

        --
        Despite the cost of living, have you noticed how it remains so popular?

        /// 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.