mirror of https://github.com/python/cpython
Fold long lines. (Walter, please take note! :-)
This commit is contained in:
parent
f49562586f
commit
5961042061
|
@ -667,15 +667,24 @@ proxy_copy(proxyobject *pp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef proxy_methods[] = {
|
static PyMethodDef proxy_methods[] = {
|
||||||
{"has_key", (PyCFunction)proxy_has_key, METH_O, "D.has_key(k) -> 1 if D has a key k, else 0"},
|
{"has_key", (PyCFunction)proxy_has_key, METH_O,
|
||||||
{"get", (PyCFunction)proxy_get, METH_VARARGS, "D.get(k[,d]) -> D[k] if D.has_key(k), else d. d defaults to None."},
|
"D.has_key(k) -> 1 if D has a key k, else 0"},
|
||||||
{"keys", (PyCFunction)proxy_keys, METH_NOARGS, "D.keys() -> list of D's keys"},
|
{"get", (PyCFunction)proxy_get, METH_VARARGS,
|
||||||
{"values", (PyCFunction)proxy_values, METH_NOARGS, "D.values() -> list of D's values"},
|
"D.get(k[,d]) -> D[k] if D.has_key(k), else d. d defaults to None."},
|
||||||
{"items", (PyCFunction)proxy_items, METH_NOARGS, "D.items() -> list of D's (key, value) pairs, as 2-tuples"},
|
{"keys", (PyCFunction)proxy_keys, METH_NOARGS,
|
||||||
{"iterkeys", (PyCFunction)proxy_iterkeys, METH_NOARGS, "D.iterkeys() -> an iterator over the keys of D"},
|
"D.keys() -> list of D's keys"},
|
||||||
{"itervalues",(PyCFunction)proxy_itervalues, METH_NOARGS, "D.itervalues() -> an iterator over the values of D"},
|
{"values", (PyCFunction)proxy_values, METH_NOARGS,
|
||||||
{"iteritems", (PyCFunction)proxy_iteritems, METH_NOARGS, "D.iteritems() -> an iterator over the (key, value) items of D"},
|
"D.values() -> list of D's values"},
|
||||||
{"copy", (PyCFunction)proxy_copy, METH_NOARGS, "D.copy() -> a shallow copy of D"},
|
{"items", (PyCFunction)proxy_items, METH_NOARGS,
|
||||||
|
"D.items() -> list of D's (key, value) pairs, as 2-tuples"},
|
||||||
|
{"iterkeys", (PyCFunction)proxy_iterkeys, METH_NOARGS,
|
||||||
|
"D.iterkeys() -> an iterator over the keys of D"},
|
||||||
|
{"itervalues",(PyCFunction)proxy_itervalues, METH_NOARGS,
|
||||||
|
"D.itervalues() -> an iterator over the values of D"},
|
||||||
|
{"iteritems", (PyCFunction)proxy_iteritems, METH_NOARGS,
|
||||||
|
"D.iteritems() -> an iterator over the (key, value) items of D"},
|
||||||
|
{"copy", (PyCFunction)proxy_copy, METH_NOARGS,
|
||||||
|
"D.copy() -> a shallow copy of D"},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue