マップ型プロトコル (mapping protocol)
*************************************

int PyMapping_Check(PyObject *o)

   オブジェクトがマップ型プロトコルを提供している場合に "1" を返し、そ
   うでないときには "0" を返します。この関数呼び出しは常に成功します。

Py_ssize_t PyMapping_Size(PyObject *o)
Py_ssize_t PyMapping_Length(PyObject *o)

   成功するとオブジェクト *o* 中のキーの数を返し、失敗すると "-1" を返
   します。マップ型プロトコルを提供していないオブジェクトに対しては、
   Python の式 "len(o)" と同じになります。

   バージョン 2.5 で変更: These functions returned an "int" type. This
   might require changes in your code for properly supporting 64-bit
   systems.

int PyMapping_DelItemString(PyObject *o, char *key)

   オブジェクト *o* から *key* に関する対応付けを削除します。失敗する
   と "-1" を返します。Python の文 "del o[key]" と同じです。

int PyMapping_DelItem(PyObject *o, PyObject *key)

   オブジェクト *o* から *key* に関する対応付けを削除します。失敗する
   と "-1" を返します。Python の文 "del o[key]" と同じです。

int PyMapping_HasKeyString(PyObject *o, char *key)

   On success, return "1" if the mapping object has the key *key* and
   "0" otherwise.  This is equivalent to "o[key]", returning "True" on
   success and "False" on an exception.  This function always
   succeeds.

int PyMapping_HasKey(PyObject *o, PyObject *key)

   Return "1" if the mapping object has the key *key* and "0"
   otherwise. This is equivalent to "o[key]", returning "True" on
   success and "False" on an exception.  This function always
   succeeds.

PyObject* PyMapping_Keys(PyObject *o)
    *Return value: New reference.*

   On success, return a list of the keys in object *o*.  On failure,
   return *NULL*. This is equivalent to the Python expression
   "o.keys()".

PyObject* PyMapping_Values(PyObject *o)
    *Return value: New reference.*

   On success, return a list of the values in object *o*.  On failure,
   return *NULL*. This is equivalent to the Python expression
   "o.values()".

PyObject* PyMapping_Items(PyObject *o)
    *Return value: New reference.*

   On success, return a list of the items in object *o*, where each
   item is a tuple containing a key-value pair.  On failure, return
   *NULL*. This is equivalent to the Python expression "o.items()".

PyObject* PyMapping_GetItemString(PyObject *o, char *key)
    *Return value: New reference.*

   オブジェクト *key* に対応する *o* の要素を返します。失敗すると
   *NULL* を返します。Python の式 "o[key]" と同じです。

int PyMapping_SetItemString(PyObject *o, char *key, PyObject *v)

   オブジェクト *o* で *key* を値 *v* に対応付けます。失敗すると "-1"
   を返します。Python の文 "o[key] = v" と同じです。
