summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.611
blob: 5e366a784a12405536eb4eec1cc7da05d1448a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
To: vim_dev@googlegroups.com
Subject: Patch 7.3.611
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.611
Problem:    Can't use Vim dictionary as self argument in Python.
Solution:   Fix the check for the "self" argument. (ZyX)
Files:	    src/if_py_both.h


*** ../vim-7.3.610/src/if_py_both.h	2012-06-30 13:34:29.000000000 +0200
--- src/if_py_both.h	2012-07-25 15:32:10.000000000 +0200
***************
*** 1284,1292 ****
  	selfdictObject = PyDict_GetItemString(kwargs, "self");
  	if (selfdictObject != NULL)
  	{
! 	    if (!PyDict_Check(selfdictObject))
  	    {
! 		PyErr_SetString(PyExc_TypeError, _("'self' argument must be a dictionary"));
  		clear_tv(&args);
  		return NULL;
  	    }
--- 1284,1293 ----
  	selfdictObject = PyDict_GetItemString(kwargs, "self");
  	if (selfdictObject != NULL)
  	{
! 	    if (!PyMapping_Check(selfdictObject))
  	    {
! 		PyErr_SetString(PyExc_TypeError,
! 				   _("'self' argument must be a dictionary"));
  		clear_tv(&args);
  		return NULL;
  	    }
*** ../vim-7.3.610/src/version.c	2012-07-25 15:06:20.000000000 +0200
--- src/version.c	2012-07-25 15:32:24.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     611,
  /**/

-- 
In Joseph Heller's novel "Catch-22", the main character tries to get out of a
war by proving he is crazy.  But the mere fact he wants to get out of the war
only shows he isn't crazy -- creating the original "Catch-22".

 /// Bram Moolenaar -- Bram@Moolenaar.net -- 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    ///