[Python-checkins] python/dist/src/Objects descrobject.c, 2.35, 2.36 dictobject.c, 2.146, 2.147

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 1 16:12:10 EDT 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv13315

Modified Files:
	descrobject.c dictobject.c 
Log Message:
SF patch #798467:  Update docstring of has_key for bool changes
(Contributed by George Yoshida.)



Index: descrobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/descrobject.c,v
retrieving revision 2.35
retrieving revision 2.36
diff -C2 -d -r2.35 -r2.36
*** descrobject.c	9 Apr 2003 17:05:33 -0000	2.35
--- descrobject.c	1 Sep 2003 22:12:07 -0000	2.36
***************
*** 766,770 ****
  static PyMethodDef proxy_methods[] = {
  	{"has_key",   (PyCFunction)proxy_has_key,    METH_O,
! 	 PyDoc_STR("D.has_key(k) -> 1 if D has a key k, else 0")},
  	{"get",       (PyCFunction)proxy_get,        METH_VARARGS,
  	 PyDoc_STR("D.get(k[,d]) -> D[k] if D.has_key(k), else d."
--- 766,770 ----
  static PyMethodDef proxy_methods[] = {
  	{"has_key",   (PyCFunction)proxy_has_key,    METH_O,
! 	 PyDoc_STR("D.has_key(k) -> True if D has a key k, else False")},
  	{"get",       (PyCFunction)proxy_get,        METH_VARARGS,
  	 PyDoc_STR("D.get(k[,d]) -> D[k] if D.has_key(k), else d."

Index: dictobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/dictobject.c,v
retrieving revision 2.146
retrieving revision 2.147
diff -C2 -d -r2.146 -r2.147
*** dictobject.c	7 May 2003 00:49:40 -0000	2.146
--- dictobject.c	1 Sep 2003 22:12:08 -0000	2.147
***************
*** 1734,1738 ****
  
  PyDoc_STRVAR(has_key__doc__,
! "D.has_key(k) -> 1 if D has a key k, else 0");
  
  PyDoc_STRVAR(get__doc__,
--- 1734,1738 ----
  
  PyDoc_STRVAR(has_key__doc__,
! "D.has_key(k) -> True if D has a key k, else False");
  
  PyDoc_STRVAR(get__doc__,





More information about the Python-checkins mailing list