Changeset 391 for python/trunk/Doc/c-api/mapping.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/c-api/mapping.rst
r2 r391 7 7 8 8 9 .. c function:: int PyMapping_Check(PyObject *o)9 .. c:function:: int PyMapping_Check(PyObject *o) 10 10 11 11 Return ``1`` if the object provides mapping protocol, and ``0`` otherwise. This … … 13 13 14 14 15 .. c function:: Py_ssize_t PyMapping_Size(PyObject *o)15 .. c:function:: Py_ssize_t PyMapping_Size(PyObject *o) 16 16 Py_ssize_t PyMapping_Length(PyObject *o) 17 17 … … 23 23 24 24 .. versionchanged:: 2.5 25 These functions returned an :c type:`int` type. This might require25 These functions returned an :c:type:`int` type. This might require 26 26 changes in your code for properly supporting 64-bit systems. 27 27 28 28 29 .. c function:: int PyMapping_DelItemString(PyObject *o, char *key)29 .. c:function:: int PyMapping_DelItemString(PyObject *o, char *key) 30 30 31 31 Remove the mapping for object *key* from the object *o*. Return ``-1`` on … … 33 33 34 34 35 .. c function:: int PyMapping_DelItem(PyObject *o, PyObject *key)35 .. c:function:: int PyMapping_DelItem(PyObject *o, PyObject *key) 36 36 37 37 Remove the mapping for object *key* from the object *o*. Return ``-1`` on … … 39 39 40 40 41 .. c function:: int PyMapping_HasKeyString(PyObject *o, char *key)41 .. c:function:: int PyMapping_HasKeyString(PyObject *o, char *key) 42 42 43 43 On success, return ``1`` if the mapping object has the key *key* and ``0`` … … 46 46 47 47 48 .. c function:: int PyMapping_HasKey(PyObject *o, PyObject *key)48 .. c:function:: int PyMapping_HasKey(PyObject *o, PyObject *key) 49 49 50 50 Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. … … 53 53 54 54 55 .. c function:: PyObject* PyMapping_Keys(PyObject *o)55 .. c:function:: PyObject* PyMapping_Keys(PyObject *o) 56 56 57 57 On success, return a list of the keys in object *o*. On failure, return *NULL*. … … 59 59 60 60 61 .. c function:: PyObject* PyMapping_Values(PyObject *o)61 .. c:function:: PyObject* PyMapping_Values(PyObject *o) 62 62 63 63 On success, return a list of the values in object *o*. On failure, return … … 65 65 66 66 67 .. c function:: PyObject* PyMapping_Items(PyObject *o)67 .. c:function:: PyObject* PyMapping_Items(PyObject *o) 68 68 69 69 On success, return a list of the items in object *o*, where each item is a tuple … … 72 72 73 73 74 .. c function:: PyObject* PyMapping_GetItemString(PyObject *o, char *key)74 .. c:function:: PyObject* PyMapping_GetItemString(PyObject *o, char *key) 75 75 76 76 Return element of *o* corresponding to the object *key* or *NULL* on failure. … … 78 78 79 79 80 .. c function:: int PyMapping_SetItemString(PyObject *o, char *key, PyObject *v)80 .. c:function:: int PyMapping_SetItemString(PyObject *o, char *key, PyObject *v) 81 81 82 82 Map the object *key* to the value *v* in object *o*. Returns ``-1`` on failure.
Note:
See TracChangeset
for help on using the changeset viewer.