|
Karsten Hopp |
4877c4 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
4877c4 |
Subject: Patch 7.3.656
|
|
Karsten Hopp |
4877c4 |
Fcc: outbox
|
|
Karsten Hopp |
4877c4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
4877c4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
4877c4 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
4877c4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
4877c4 |
------------
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
Patch 7.3.656
|
|
Karsten Hopp |
4877c4 |
Problem: Internal error in :pyeval.
|
|
Karsten Hopp |
4877c4 |
Solution: Handle failed object conversion. (ZyX)
|
|
Karsten Hopp |
4877c4 |
Files: src/if_python.c, src/if_python3.c
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
*** ../vim-7.3.655/src/if_python.c 2012-06-30 13:34:29.000000000 +0200
|
|
Karsten Hopp |
4877c4 |
--- src/if_python.c 2012-09-05 18:52:50.000000000 +0200
|
|
Karsten Hopp |
4877c4 |
***************
|
|
Karsten Hopp |
4877c4 |
*** 1025,1032 ****
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
static PySequenceMethods BufferAsSeq = {
|
|
Karsten Hopp |
4877c4 |
(PyInquiry) BufferLength, /* sq_length, len(x) */
|
|
Karsten Hopp |
4877c4 |
! (binaryfunc) 0, /* BufferConcat, */ /* sq_concat, x+y */
|
|
Karsten Hopp |
4877c4 |
! (PyIntArgFunc) 0, /* BufferRepeat, */ /* sq_repeat, x*n */
|
|
Karsten Hopp |
4877c4 |
(PyIntArgFunc) BufferItem, /* sq_item, x[i] */
|
|
Karsten Hopp |
4877c4 |
(PyIntIntArgFunc) BufferSlice, /* sq_slice, x[i:j] */
|
|
Karsten Hopp |
4877c4 |
(PyIntObjArgProc) BufferAssItem, /* sq_ass_item, x[i]=v */
|
|
Karsten Hopp |
4877c4 |
--- 1025,1032 ----
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
static PySequenceMethods BufferAsSeq = {
|
|
Karsten Hopp |
4877c4 |
(PyInquiry) BufferLength, /* sq_length, len(x) */
|
|
Karsten Hopp |
4877c4 |
! (binaryfunc) 0, /* BufferConcat, sq_concat, x+y */
|
|
Karsten Hopp |
4877c4 |
! (PyIntArgFunc) 0, /* BufferRepeat, sq_repeat, x*n */
|
|
Karsten Hopp |
4877c4 |
(PyIntArgFunc) BufferItem, /* sq_item, x[i] */
|
|
Karsten Hopp |
4877c4 |
(PyIntIntArgFunc) BufferSlice, /* sq_slice, x[i:j] */
|
|
Karsten Hopp |
4877c4 |
(PyIntObjArgProc) BufferAssItem, /* sq_ass_item, x[i]=v */
|
|
Karsten Hopp |
4877c4 |
***************
|
|
Karsten Hopp |
4877c4 |
*** 1787,1792 ****
|
|
Karsten Hopp |
4877c4 |
--- 1787,1796 ----
|
|
Karsten Hopp |
4877c4 |
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
|
Karsten Hopp |
4877c4 |
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
|
Karsten Hopp |
4877c4 |
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
|
Karsten Hopp |
4877c4 |
+ case VAR_UNKNOWN:
|
|
Karsten Hopp |
4877c4 |
+ rettv->v_type = VAR_NUMBER;
|
|
Karsten Hopp |
4877c4 |
+ rettv->vval.v_number = 0;
|
|
Karsten Hopp |
4877c4 |
+ break;
|
|
Karsten Hopp |
4877c4 |
}
|
|
Karsten Hopp |
4877c4 |
}
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
*** ../vim-7.3.655/src/if_python3.c 2012-06-29 16:28:23.000000000 +0200
|
|
Karsten Hopp |
4877c4 |
--- src/if_python3.c 2012-09-05 18:52:50.000000000 +0200
|
|
Karsten Hopp |
4877c4 |
***************
|
|
Karsten Hopp |
4877c4 |
*** 1817,1822 ****
|
|
Karsten Hopp |
4877c4 |
--- 1817,1826 ----
|
|
Karsten Hopp |
4877c4 |
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
|
Karsten Hopp |
4877c4 |
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
|
Karsten Hopp |
4877c4 |
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
|
Karsten Hopp |
4877c4 |
+ case VAR_UNKNOWN:
|
|
Karsten Hopp |
4877c4 |
+ rettv->v_type = VAR_NUMBER;
|
|
Karsten Hopp |
4877c4 |
+ rettv->vval.v_number = 0;
|
|
Karsten Hopp |
4877c4 |
+ break;
|
|
Karsten Hopp |
4877c4 |
}
|
|
Karsten Hopp |
4877c4 |
}
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
*** ../vim-7.3.655/src/version.c 2012-09-05 18:48:22.000000000 +0200
|
|
Karsten Hopp |
4877c4 |
--- src/version.c 2012-09-05 18:53:20.000000000 +0200
|
|
Karsten Hopp |
4877c4 |
***************
|
|
Karsten Hopp |
4877c4 |
*** 721,722 ****
|
|
Karsten Hopp |
4877c4 |
--- 721,724 ----
|
|
Karsten Hopp |
4877c4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
4877c4 |
+ /**/
|
|
Karsten Hopp |
4877c4 |
+ 656,
|
|
Karsten Hopp |
4877c4 |
/**/
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
--
|
|
Karsten Hopp |
4877c4 |
DEAD PERSON: I'm getting better!
|
|
Karsten Hopp |
4877c4 |
CUSTOMER: No, you're not -- you'll be stone dead in a moment.
|
|
Karsten Hopp |
4877c4 |
MORTICIAN: Oh, I can't take him like that -- it's against regulations.
|
|
Karsten Hopp |
4877c4 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
4877c4 |
|
|
Karsten Hopp |
4877c4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
4877c4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
4877c4 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
4877c4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|