Karsten Hopp 74e3fe
To: vim_dev@googlegroups.com
Karsten Hopp 74e3fe
Subject: Patch 7.3.1065
Karsten Hopp 74e3fe
Fcc: outbox
Karsten Hopp 74e3fe
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 74e3fe
Mime-Version: 1.0
Karsten Hopp 74e3fe
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 74e3fe
Content-Transfer-Encoding: 8bit
Karsten Hopp 74e3fe
------------
Karsten Hopp 74e3fe
Karsten Hopp 74e3fe
Patch 7.3.1065
Karsten Hopp 74e3fe
Problem:    Python: key mapping is not standard.
Karsten Hopp 74e3fe
Solution:   Puthon patch 24: use PyMapping_Keys. (ZyX)
Karsten Hopp 74e3fe
Files:	    src/if_py_both.h, src/if_python3.c, src/if_python.c
Karsten Hopp 74e3fe
Karsten Hopp 74e3fe
Karsten Hopp 74e3fe
*** ../vim-7.3.1064/src/if_py_both.h	2013-05-30 13:17:13.000000000 +0200
Karsten Hopp 74e3fe
--- src/if_py_both.h	2013-05-30 13:19:50.000000000 +0200
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 4612,4621 ****
Karsten Hopp 74e3fe
      char_u	*key;
Karsten Hopp 74e3fe
      dictitem_T	*di;
Karsten Hopp 74e3fe
      PyObject	*list;
Karsten Hopp 74e3fe
!     PyObject	*litem;
Karsten Hopp 74e3fe
      PyObject	*keyObject;
Karsten Hopp 74e3fe
      PyObject	*valObject;
Karsten Hopp 74e3fe
-     Py_ssize_t	lsize;
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
      if (!(dict = dict_alloc()))
Karsten Hopp 74e3fe
  	return -1;
Karsten Hopp 74e3fe
--- 4612,4620 ----
Karsten Hopp 74e3fe
      char_u	*key;
Karsten Hopp 74e3fe
      dictitem_T	*di;
Karsten Hopp 74e3fe
      PyObject	*list;
Karsten Hopp 74e3fe
!     PyObject	*iterator;
Karsten Hopp 74e3fe
      PyObject	*keyObject;
Karsten Hopp 74e3fe
      PyObject	*valObject;
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
      if (!(dict = dict_alloc()))
Karsten Hopp 74e3fe
  	return -1;
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 4623,4683 ****
Karsten Hopp 74e3fe
      tv->v_type = VAR_DICT;
Karsten Hopp 74e3fe
      tv->vval.v_dict = dict;
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
!     list = PyMapping_Items(obj);
Karsten Hopp 74e3fe
!     if (list == NULL)
Karsten Hopp 74e3fe
      {
Karsten Hopp 74e3fe
  	dict_unref(dict);
Karsten Hopp 74e3fe
  	return -1;
Karsten Hopp 74e3fe
      }
Karsten Hopp 74e3fe
-     lsize = PyList_Size(list);
Karsten Hopp 74e3fe
-     while (lsize--)
Karsten Hopp 74e3fe
-     {
Karsten Hopp 74e3fe
- 	DICTKEY_DECL
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
! 	litem = PyList_GetItem(list, lsize);
Karsten Hopp 74e3fe
! 	if (litem == NULL)
Karsten Hopp 74e3fe
! 	{
Karsten Hopp 74e3fe
! 	    Py_DECREF(list);
Karsten Hopp 74e3fe
! 	    dict_unref(dict);
Karsten Hopp 74e3fe
! 	    return -1;
Karsten Hopp 74e3fe
! 	}
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
! 	if (!(keyObject = PyTuple_GetItem(litem, 0)))
Karsten Hopp 74e3fe
! 	{
Karsten Hopp 74e3fe
! 	    Py_DECREF(list);
Karsten Hopp 74e3fe
! 	    Py_DECREF(litem);
Karsten Hopp 74e3fe
! 	    dict_unref(dict);
Karsten Hopp 74e3fe
! 	    return -1;
Karsten Hopp 74e3fe
! 	}
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	if (!DICTKEY_SET_KEY)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
- 	    Py_DECREF(list);
Karsten Hopp 74e3fe
- 	    Py_DECREF(litem);
Karsten Hopp 74e3fe
  	    DICTKEY_UNREF
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
  	DICTKEY_CHECK_EMPTY(-1)
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
! 	if (!(valObject = PyTuple_GetItem(litem, 1)))
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
! 	    Py_DECREF(list);
Karsten Hopp 74e3fe
! 	    Py_DECREF(litem);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    DICTKEY_UNREF
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
- 	Py_DECREF(litem);
Karsten Hopp 74e3fe
- 
Karsten Hopp 74e3fe
  	di = dictitem_alloc(key);
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	DICTKEY_UNREF
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	if (di == NULL)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
! 	    Py_DECREF(list);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    PyErr_NoMemory();
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
--- 4622,4673 ----
Karsten Hopp 74e3fe
      tv->v_type = VAR_DICT;
Karsten Hopp 74e3fe
      tv->vval.v_dict = dict;
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
!     if (!(list = PyMapping_Keys(obj)))
Karsten Hopp 74e3fe
      {
Karsten Hopp 74e3fe
  	dict_unref(dict);
Karsten Hopp 74e3fe
  	return -1;
Karsten Hopp 74e3fe
      }
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
!     if (!(iterator = PyObject_GetIter(list)))
Karsten Hopp 74e3fe
!     {
Karsten Hopp 74e3fe
! 	dict_unref(dict);
Karsten Hopp 74e3fe
! 	Py_DECREF(list);
Karsten Hopp 74e3fe
! 	return -1;
Karsten Hopp 74e3fe
!     }
Karsten Hopp 74e3fe
!     Py_DECREF(list);
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
!     while ((keyObject = PyIter_Next(iterator)))
Karsten Hopp 74e3fe
!     {
Karsten Hopp 74e3fe
! 	DICTKEY_DECL
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	if (!DICTKEY_SET_KEY)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
+ 	    Py_DECREF(iterator);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    DICTKEY_UNREF
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
  	DICTKEY_CHECK_EMPTY(-1)
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
! 	if (!(valObject = PyObject_GetItem(obj, keyObject)))
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
! 	    Py_DECREF(keyObject);
Karsten Hopp 74e3fe
! 	    Py_DECREF(iterator);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    DICTKEY_UNREF
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	di = dictitem_alloc(key);
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	DICTKEY_UNREF
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
+ 	Py_DECREF(keyObject);
Karsten Hopp 74e3fe
+ 
Karsten Hopp 74e3fe
  	if (di == NULL)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
! 	    Py_DECREF(iterator);
Karsten Hopp 74e3fe
! 	    Py_DECREF(valObject);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    PyErr_NoMemory();
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 4686,4708 ****
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	if (_ConvertFromPyObject(valObject, &di->di_tv, lookup_dict) == -1)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
  	    vim_free(di);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
- 	    Py_DECREF(list);
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	if (dict_add(dict, di) == FAIL)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
  	    dictitem_free(di);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
- 	    Py_DECREF(list);
Karsten Hopp 74e3fe
  	    PyErr_SetVim(_("failed to add key to dictionary"));
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
      }
Karsten Hopp 74e3fe
      --dict->dv_refcount;
Karsten Hopp 74e3fe
-     Py_DECREF(list);
Karsten Hopp 74e3fe
      return 0;
Karsten Hopp 74e3fe
  }
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
--- 4676,4701 ----
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
  	if (_ConvertFromPyObject(valObject, &di->di_tv, lookup_dict) == -1)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
+ 	    Py_DECREF(iterator);
Karsten Hopp 74e3fe
+ 	    Py_DECREF(valObject);
Karsten Hopp 74e3fe
  	    vim_free(di);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
+ 	Py_DECREF(valObject);
Karsten Hopp 74e3fe
+ 
Karsten Hopp 74e3fe
  	if (dict_add(dict, di) == FAIL)
Karsten Hopp 74e3fe
  	{
Karsten Hopp 74e3fe
+ 	    Py_DECREF(iterator);
Karsten Hopp 74e3fe
  	    dictitem_free(di);
Karsten Hopp 74e3fe
  	    dict_unref(dict);
Karsten Hopp 74e3fe
  	    PyErr_SetVim(_("failed to add key to dictionary"));
Karsten Hopp 74e3fe
  	    return -1;
Karsten Hopp 74e3fe
  	}
Karsten Hopp 74e3fe
      }
Karsten Hopp 74e3fe
+     Py_DECREF(iterator);
Karsten Hopp 74e3fe
      --dict->dv_refcount;
Karsten Hopp 74e3fe
      return 0;
Karsten Hopp 74e3fe
  }
Karsten Hopp 74e3fe
  
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 4907,4912 ****
Karsten Hopp 74e3fe
--- 4900,4907 ----
Karsten Hopp 74e3fe
  	tv->vval.v_float = (float_T) PyFloat_AsDouble(obj);
Karsten Hopp 74e3fe
      }
Karsten Hopp 74e3fe
  #endif
Karsten Hopp 74e3fe
+     else if (PyObject_HasAttrString(obj, "keys"))
Karsten Hopp 74e3fe
+ 	return convert_dl(obj, tv, pymap_to_tv, lookup_dict);
Karsten Hopp 74e3fe
      else if (PyIter_Check(obj) || PySequence_Check(obj))
Karsten Hopp 74e3fe
  	return convert_dl(obj, tv, pyseq_to_tv, lookup_dict);
Karsten Hopp 74e3fe
      else if (PyMapping_Check(obj))
Karsten Hopp 74e3fe
*** ../vim-7.3.1064/src/if_python3.c	2013-05-30 13:01:14.000000000 +0200
Karsten Hopp 74e3fe
--- src/if_python3.c	2013-05-30 13:19:50.000000000 +0200
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 160,168 ****
Karsten Hopp 74e3fe
  # define PyDict_GetItemString py3_PyDict_GetItemString
Karsten Hopp 74e3fe
  # define PyDict_Next py3_PyDict_Next
Karsten Hopp 74e3fe
  # define PyMapping_Check py3_PyMapping_Check
Karsten Hopp 74e3fe
! # define PyMapping_Items py3_PyMapping_Items
Karsten Hopp 74e3fe
  # define PyIter_Next py3_PyIter_Next
Karsten Hopp 74e3fe
  # define PyObject_GetIter py3_PyObject_GetIter
Karsten Hopp 74e3fe
  # define PyObject_IsTrue py3_PyObject_IsTrue
Karsten Hopp 74e3fe
  # define PyModule_GetDict py3_PyModule_GetDict
Karsten Hopp 74e3fe
  #undef PyRun_SimpleString
Karsten Hopp 74e3fe
--- 160,169 ----
Karsten Hopp 74e3fe
  # define PyDict_GetItemString py3_PyDict_GetItemString
Karsten Hopp 74e3fe
  # define PyDict_Next py3_PyDict_Next
Karsten Hopp 74e3fe
  # define PyMapping_Check py3_PyMapping_Check
Karsten Hopp 74e3fe
! # define PyMapping_Keys py3_PyMapping_Keys
Karsten Hopp 74e3fe
  # define PyIter_Next py3_PyIter_Next
Karsten Hopp 74e3fe
  # define PyObject_GetIter py3_PyObject_GetIter
Karsten Hopp 74e3fe
+ # define PyObject_GetItem py3_PyObject_GetItem
Karsten Hopp 74e3fe
  # define PyObject_IsTrue py3_PyObject_IsTrue
Karsten Hopp 74e3fe
  # define PyModule_GetDict py3_PyModule_GetDict
Karsten Hopp 74e3fe
  #undef PyRun_SimpleString
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 276,282 ****
Karsten Hopp 74e3fe
  static Py_ssize_t (*py3_PyTuple_Size)(PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyTuple_GetItem)(PyObject *, Py_ssize_t);
Karsten Hopp 74e3fe
  static int (*py3_PyMapping_Check)(PyObject *);
Karsten Hopp 74e3fe
! static PyObject* (*py3_PyMapping_Items)(PyObject *);
Karsten Hopp 74e3fe
  static int (*py3_PySlice_GetIndicesEx)(PyObject *r, Py_ssize_t length,
Karsten Hopp 74e3fe
  		     Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength);
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyErr_NoMemory)(void);
Karsten Hopp 74e3fe
--- 277,283 ----
Karsten Hopp 74e3fe
  static Py_ssize_t (*py3_PyTuple_Size)(PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyTuple_GetItem)(PyObject *, Py_ssize_t);
Karsten Hopp 74e3fe
  static int (*py3_PyMapping_Check)(PyObject *);
Karsten Hopp 74e3fe
! static PyObject* (*py3_PyMapping_Keys)(PyObject *);
Karsten Hopp 74e3fe
  static int (*py3_PySlice_GetIndicesEx)(PyObject *r, Py_ssize_t length,
Karsten Hopp 74e3fe
  		     Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, Py_ssize_t *slicelength);
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyErr_NoMemory)(void);
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 304,309 ****
Karsten Hopp 74e3fe
--- 305,311 ----
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyDict_New)(void);
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyIter_Next)(PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*py3_PyObject_GetIter)(PyObject *);
Karsten Hopp 74e3fe
+ static PyObject* (*py3_PyObject_GetItem)(PyObject *, PyObject *);
Karsten Hopp 74e3fe
  static int (*py3_PyObject_IsTrue)(PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*py3_Py_BuildValue)(char *, ...);
Karsten Hopp 74e3fe
  static int (*py3_PyType_Ready)(PyTypeObject *type);
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 456,464 ****
Karsten Hopp 74e3fe
      {"PyDict_GetItemString", (PYTHON_PROC*)&py3_PyDict_GetItemString},
Karsten Hopp 74e3fe
      {"PyDict_Next", (PYTHON_PROC*)&py3_PyDict_Next},
Karsten Hopp 74e3fe
      {"PyMapping_Check", (PYTHON_PROC*)&py3_PyMapping_Check},
Karsten Hopp 74e3fe
!     {"PyMapping_Items", (PYTHON_PROC*)&py3_PyMapping_Items},
Karsten Hopp 74e3fe
      {"PyIter_Next", (PYTHON_PROC*)&py3_PyIter_Next},
Karsten Hopp 74e3fe
      {"PyObject_GetIter", (PYTHON_PROC*)&py3_PyObject_GetIter},
Karsten Hopp 74e3fe
      {"PyObject_IsTrue", (PYTHON_PROC*)&py3_PyObject_IsTrue},
Karsten Hopp 74e3fe
      {"PyLong_FromLong", (PYTHON_PROC*)&py3_PyLong_FromLong},
Karsten Hopp 74e3fe
      {"PyDict_New", (PYTHON_PROC*)&py3_PyDict_New},
Karsten Hopp 74e3fe
--- 458,467 ----
Karsten Hopp 74e3fe
      {"PyDict_GetItemString", (PYTHON_PROC*)&py3_PyDict_GetItemString},
Karsten Hopp 74e3fe
      {"PyDict_Next", (PYTHON_PROC*)&py3_PyDict_Next},
Karsten Hopp 74e3fe
      {"PyMapping_Check", (PYTHON_PROC*)&py3_PyMapping_Check},
Karsten Hopp 74e3fe
!     {"PyMapping_Keys", (PYTHON_PROC*)&py3_PyMapping_Keys},
Karsten Hopp 74e3fe
      {"PyIter_Next", (PYTHON_PROC*)&py3_PyIter_Next},
Karsten Hopp 74e3fe
      {"PyObject_GetIter", (PYTHON_PROC*)&py3_PyObject_GetIter},
Karsten Hopp 74e3fe
+     {"PyObject_GetItem", (PYTHON_PROC*)&py3_PyObject_GetItem},
Karsten Hopp 74e3fe
      {"PyObject_IsTrue", (PYTHON_PROC*)&py3_PyObject_IsTrue},
Karsten Hopp 74e3fe
      {"PyLong_FromLong", (PYTHON_PROC*)&py3_PyLong_FromLong},
Karsten Hopp 74e3fe
      {"PyDict_New", (PYTHON_PROC*)&py3_PyDict_New},
Karsten Hopp 74e3fe
*** ../vim-7.3.1064/src/if_python.c	2013-05-30 13:01:14.000000000 +0200
Karsten Hopp 74e3fe
--- src/if_python.c	2013-05-30 13:19:50.000000000 +0200
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 197,207 ****
Karsten Hopp 74e3fe
  # define PyDict_GetItemString dll_PyDict_GetItemString
Karsten Hopp 74e3fe
  # define PyDict_Next dll_PyDict_Next
Karsten Hopp 74e3fe
  # define PyDict_Type (*dll_PyDict_Type)
Karsten Hopp 74e3fe
! # ifdef PyMapping_Items
Karsten Hopp 74e3fe
! #  define PY_NO_MAPPING_ITEMS
Karsten Hopp 74e3fe
  # else
Karsten Hopp 74e3fe
! #  define PyMapping_Items dll_PyMapping_Items
Karsten Hopp 74e3fe
  # endif
Karsten Hopp 74e3fe
  # define PyObject_CallMethod dll_PyObject_CallMethod
Karsten Hopp 74e3fe
  # define PyMapping_Check dll_PyMapping_Check
Karsten Hopp 74e3fe
  # define PyIter_Next dll_PyIter_Next
Karsten Hopp 74e3fe
--- 197,208 ----
Karsten Hopp 74e3fe
  # define PyDict_GetItemString dll_PyDict_GetItemString
Karsten Hopp 74e3fe
  # define PyDict_Next dll_PyDict_Next
Karsten Hopp 74e3fe
  # define PyDict_Type (*dll_PyDict_Type)
Karsten Hopp 74e3fe
! # ifdef PyMapping_Keys
Karsten Hopp 74e3fe
! #  define PY_NO_MAPPING_KEYS
Karsten Hopp 74e3fe
  # else
Karsten Hopp 74e3fe
! #  define PyMapping_Keys dll_PyMapping_Keys
Karsten Hopp 74e3fe
  # endif
Karsten Hopp 74e3fe
+ # define PyObject_GetItem dll_PyObject_GetItem
Karsten Hopp 74e3fe
  # define PyObject_CallMethod dll_PyObject_CallMethod
Karsten Hopp 74e3fe
  # define PyMapping_Check dll_PyMapping_Check
Karsten Hopp 74e3fe
  # define PyIter_Next dll_PyIter_Next
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 331,339 ****
Karsten Hopp 74e3fe
  static PyObject*(*dll_PyDict_GetItemString)(PyObject *, const char *);
Karsten Hopp 74e3fe
  static int (*dll_PyDict_Next)(PyObject *, PyInt *, PyObject **, PyObject **);
Karsten Hopp 74e3fe
  static PyTypeObject* dll_PyDict_Type;
Karsten Hopp 74e3fe
! # ifndef PY_NO_MAPPING_ITEMS
Karsten Hopp 74e3fe
! static PyObject* (*dll_PyMapping_Items)(PyObject *);
Karsten Hopp 74e3fe
  # endif
Karsten Hopp 74e3fe
  static PyObject* (*dll_PyObject_CallMethod)(PyObject *, char *, PyObject *);
Karsten Hopp 74e3fe
  static int (*dll_PyMapping_Check)(PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*dll_PyIter_Next)(PyObject *);
Karsten Hopp 74e3fe
--- 332,341 ----
Karsten Hopp 74e3fe
  static PyObject*(*dll_PyDict_GetItemString)(PyObject *, const char *);
Karsten Hopp 74e3fe
  static int (*dll_PyDict_Next)(PyObject *, PyInt *, PyObject **, PyObject **);
Karsten Hopp 74e3fe
  static PyTypeObject* dll_PyDict_Type;
Karsten Hopp 74e3fe
! # ifndef PY_NO_MAPPING_KEYS
Karsten Hopp 74e3fe
! static PyObject* (*dll_PyMapping_Keys)(PyObject *);
Karsten Hopp 74e3fe
  # endif
Karsten Hopp 74e3fe
+ static PyObject* (*dll_PyObject_GetItem)(PyObject *, PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*dll_PyObject_CallMethod)(PyObject *, char *, PyObject *);
Karsten Hopp 74e3fe
  static int (*dll_PyMapping_Check)(PyObject *);
Karsten Hopp 74e3fe
  static PyObject* (*dll_PyIter_Next)(PyObject *);
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 494,502 ****
Karsten Hopp 74e3fe
      {"PyDict_Next", (PYTHON_PROC*)&dll_PyDict_Next},
Karsten Hopp 74e3fe
      {"PyDict_New", (PYTHON_PROC*)&dll_PyDict_New},
Karsten Hopp 74e3fe
      {"PyDict_Type", (PYTHON_PROC*)&dll_PyDict_Type},
Karsten Hopp 74e3fe
! # ifndef PY_NO_MAPPING_ITEMS
Karsten Hopp 74e3fe
!     {"PyMapping_Items", (PYTHON_PROC*)&dll_PyMapping_Items},
Karsten Hopp 74e3fe
  # endif
Karsten Hopp 74e3fe
      {"PyObject_CallMethod", (PYTHON_PROC*)&dll_PyObject_CallMethod},
Karsten Hopp 74e3fe
      {"PyMapping_Check", (PYTHON_PROC*)&dll_PyMapping_Check},
Karsten Hopp 74e3fe
      {"PyIter_Next", (PYTHON_PROC*)&dll_PyIter_Next},
Karsten Hopp 74e3fe
--- 496,505 ----
Karsten Hopp 74e3fe
      {"PyDict_Next", (PYTHON_PROC*)&dll_PyDict_Next},
Karsten Hopp 74e3fe
      {"PyDict_New", (PYTHON_PROC*)&dll_PyDict_New},
Karsten Hopp 74e3fe
      {"PyDict_Type", (PYTHON_PROC*)&dll_PyDict_Type},
Karsten Hopp 74e3fe
! # ifndef PY_NO_MAPPING_KEYS
Karsten Hopp 74e3fe
!     {"PyMapping_Keys", (PYTHON_PROC*)&dll_PyMapping_Keys},
Karsten Hopp 74e3fe
  # endif
Karsten Hopp 74e3fe
+     {"PyObject_GetItem", (PYTHON_PROC*)&dll_PyObject_GetItem},
Karsten Hopp 74e3fe
      {"PyObject_CallMethod", (PYTHON_PROC*)&dll_PyObject_CallMethod},
Karsten Hopp 74e3fe
      {"PyMapping_Check", (PYTHON_PROC*)&dll_PyMapping_Check},
Karsten Hopp 74e3fe
      {"PyIter_Next", (PYTHON_PROC*)&dll_PyIter_Next},
Karsten Hopp 74e3fe
*** ../vim-7.3.1064/src/version.c	2013-05-30 13:17:13.000000000 +0200
Karsten Hopp 74e3fe
--- src/version.c	2013-05-30 13:19:32.000000000 +0200
Karsten Hopp 74e3fe
***************
Karsten Hopp 74e3fe
*** 730,731 ****
Karsten Hopp 74e3fe
--- 730,733 ----
Karsten Hopp 74e3fe
  {   /* Add new patch number below this line */
Karsten Hopp 74e3fe
+ /**/
Karsten Hopp 74e3fe
+     1065,
Karsten Hopp 74e3fe
  /**/
Karsten Hopp 74e3fe
Karsten Hopp 74e3fe
-- 
Karsten Hopp 74e3fe
How To Keep A Healthy Level Of Insanity:
Karsten Hopp 74e3fe
8. Don't use any punctuation marks.
Karsten Hopp 74e3fe
Karsten Hopp 74e3fe
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 74e3fe
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 74e3fe
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 74e3fe
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///