|
Karsten Hopp |
b051ac |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
b051ac |
Subject: Patch 7.3.611
|
|
Karsten Hopp |
b051ac |
Fcc: outbox
|
|
Karsten Hopp |
b051ac |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b051ac |
Mime-Version: 1.0
|
|
Karsten Hopp |
b051ac |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
b051ac |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b051ac |
------------
|
|
Karsten Hopp |
b051ac |
|
|
Karsten Hopp |
b051ac |
Patch 7.3.611
|
|
Karsten Hopp |
b051ac |
Problem: Can't use Vim dictionary as self argument in Python.
|
|
Karsten Hopp |
b051ac |
Solution: Fix the check for the "self" argument. (ZyX)
|
|
Karsten Hopp |
b051ac |
Files: src/if_py_both.h
|
|
Karsten Hopp |
b051ac |
|
|
Karsten Hopp |
b051ac |
|
|
Karsten Hopp |
b051ac |
*** ../vim-7.3.610/src/if_py_both.h 2012-06-30 13:34:29.000000000 +0200
|
|
Karsten Hopp |
b051ac |
--- src/if_py_both.h 2012-07-25 15:32:10.000000000 +0200
|
|
Karsten Hopp |
b051ac |
***************
|
|
Karsten Hopp |
b051ac |
*** 1284,1292 ****
|
|
Karsten Hopp |
b051ac |
selfdictObject = PyDict_GetItemString(kwargs, "self");
|
|
Karsten Hopp |
b051ac |
if (selfdictObject != NULL)
|
|
Karsten Hopp |
b051ac |
{
|
|
Karsten Hopp |
b051ac |
! if (!PyDict_Check(selfdictObject))
|
|
Karsten Hopp |
b051ac |
{
|
|
Karsten Hopp |
b051ac |
! PyErr_SetString(PyExc_TypeError, _("'self' argument must be a dictionary"));
|
|
Karsten Hopp |
b051ac |
clear_tv(&args);
|
|
Karsten Hopp |
b051ac |
return NULL;
|
|
Karsten Hopp |
b051ac |
}
|
|
Karsten Hopp |
b051ac |
--- 1284,1293 ----
|
|
Karsten Hopp |
b051ac |
selfdictObject = PyDict_GetItemString(kwargs, "self");
|
|
Karsten Hopp |
b051ac |
if (selfdictObject != NULL)
|
|
Karsten Hopp |
b051ac |
{
|
|
Karsten Hopp |
b051ac |
! if (!PyMapping_Check(selfdictObject))
|
|
Karsten Hopp |
b051ac |
{
|
|
Karsten Hopp |
b051ac |
! PyErr_SetString(PyExc_TypeError,
|
|
Karsten Hopp |
b051ac |
! _("'self' argument must be a dictionary"));
|
|
Karsten Hopp |
b051ac |
clear_tv(&args);
|
|
Karsten Hopp |
b051ac |
return NULL;
|
|
Karsten Hopp |
b051ac |
}
|
|
Karsten Hopp |
b051ac |
*** ../vim-7.3.610/src/version.c 2012-07-25 15:06:20.000000000 +0200
|
|
Karsten Hopp |
b051ac |
--- src/version.c 2012-07-25 15:32:24.000000000 +0200
|
|
Karsten Hopp |
b051ac |
***************
|
|
Karsten Hopp |
b051ac |
*** 716,717 ****
|
|
Karsten Hopp |
b051ac |
--- 716,719 ----
|
|
Karsten Hopp |
b051ac |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b051ac |
+ /**/
|
|
Karsten Hopp |
b051ac |
+ 611,
|
|
Karsten Hopp |
b051ac |
/**/
|
|
Karsten Hopp |
b051ac |
|
|
Karsten Hopp |
b051ac |
--
|
|
Karsten Hopp |
b051ac |
In Joseph Heller's novel "Catch-22", the main character tries to get out of a
|
|
Karsten Hopp |
b051ac |
war by proving he is crazy. But the mere fact he wants to get out of the war
|
|
Karsten Hopp |
b051ac |
only shows he isn't crazy -- creating the original "Catch-22".
|
|
Karsten Hopp |
b051ac |
|
|
Karsten Hopp |
b051ac |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b051ac |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b051ac |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
b051ac |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|