[Python-checkins] cpython: Fix minor bug in dict.__contains__ docstring.
meador.inge
python-checkins at python.org
Tue Jan 14 23:49:04 CET 2014
http://hg.python.org/cpython/rev/f35b3a86ade3
changeset: 88485:f35b3a86ade3
user: Meador Inge <meadori at gmail.com>
date: Tue Jan 14 16:48:31 2014 -0600
summary:
Fix minor bug in dict.__contains__ docstring.
When dict got clinicized in 8fde1a2c94dc for Issue #16612 an erroneous
trailing quote was left in the clinic docstring summary line.
files:
Objects/dictobject.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2172,19 +2172,19 @@
key: object
/
-True if D has a key k, else False"
+True if D has a key k, else False.
[clinic start generated code]*/
PyDoc_STRVAR(dict___contains____doc__,
"__contains__(key)\n"
-"True if D has a key k, else False\"");
+"True if D has a key k, else False.");
#define DICT___CONTAINS___METHODDEF \
{"__contains__", (PyCFunction)dict___contains__, METH_O|METH_COEXIST, dict___contains____doc__},
static PyObject *
dict___contains__(PyObject *self, PyObject *key)
-/*[clinic end generated code: checksum=3bbac5ce898ae630d9668fa1c8b3afb645ff22e8]*/
+/*[clinic end generated code: checksum=402ddb624ba1e4db764bfdfbbee6c1c59d1a11fa]*/
{
register PyDictObject *mp = (PyDictObject *)self;
Py_hash_t hash;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list