diff options
author | Guido van Rossum <guido@python.org> | 2002-04-13 14:06:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-13 14:06:36 (GMT) |
commit | 5961042061cb055c5e557816fc8d18e87c477617 (patch) | |
tree | 1c43274fa9cdce127ffc8ec1c4778ac34fc13ffa /Objects/descrobject.c | |
parent | f49562586f965ef8f670fcf8e7f89bf3df0a876e (diff) | |
download | cpython-5961042061cb055c5e557816fc8d18e87c477617.zip cpython-5961042061cb055c5e557816fc8d18e87c477617.tar.gz cpython-5961042061cb055c5e557816fc8d18e87c477617.tar.bz2 |
Fold long lines. (Walter, please take note! :-)
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r-- | Objects/descrobject.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 339bf70..cbf56a9 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -667,15 +667,24 @@ 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"}, - {"get", (PyCFunction)proxy_get, METH_VARARGS, "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"}, - {"values", (PyCFunction)proxy_values, METH_NOARGS, "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"}, - {"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"}, + {"has_key", (PyCFunction)proxy_has_key, METH_O, + "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."}, + {"keys", (PyCFunction)proxy_keys, METH_NOARGS, + "D.keys() -> list of D's keys"}, + {"values", (PyCFunction)proxy_values, METH_NOARGS, + "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"}, + {"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} }; |