Allow more docstrings to be removed during compilation

This commit is contained in:
Neal Norwitz 2002-08-13 22:19:13 +00:00
parent 7f270ba860
commit 5dc2a37f0f
2 changed files with 18 additions and 14 deletions

View file

@ -668,23 +668,25 @@ proxy_copy(proxyobject *pp)
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"},
PyDoc_STR("D.has_key(k) -> 1 if D has a key k, else 0")},
{"get", (PyCFunction)proxy_get, METH_VARARGS,
"D.get(k[,d]) -> D[k] if D.has_key(k), else d. d defaults to None."},
PyDoc_STR("D.get(k[,d]) -> D[k] if D.has_key(k), else d."
" d defaults to None.")},
{"keys", (PyCFunction)proxy_keys, METH_NOARGS,
"D.keys() -> list of D's keys"},
PyDoc_STR("D.keys() -> list of D's keys")},
{"values", (PyCFunction)proxy_values, METH_NOARGS,
"D.values() -> list of D's values"},
PyDoc_STR("D.values() -> list of D's values")},
{"items", (PyCFunction)proxy_items, METH_NOARGS,
"D.items() -> list of D's (key, value) pairs, as 2-tuples"},
PyDoc_STR("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"},
PyDoc_STR("D.iterkeys() -> an iterator over the keys of D")},
{"itervalues",(PyCFunction)proxy_itervalues, METH_NOARGS,
"D.itervalues() -> an iterator over the values of D"},
PyDoc_STR("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"},
PyDoc_STR("D.iteritems() ->"
" an iterator over the (key, value) items of D")},
{"copy", (PyCFunction)proxy_copy, METH_NOARGS,
"D.copy() -> a shallow copy of D"},
PyDoc_STR("D.copy() -> a shallow copy of D")},
{0}
};