r78522 - in python/trunk/Objects: dictobject.c listobject.c tupleobject.c
Author: ezio.melotti Date: Mon Mar 1 00:59:00 2010 New Revision: 78522 Log: #8030: more docstring fix for builtin types. Modified: python/trunk/Objects/dictobject.c python/trunk/Objects/listobject.c python/trunk/Objects/tupleobject.c Modified: python/trunk/Objects/dictobject.c ============================================================================== --- python/trunk/Objects/dictobject.c (original) +++ python/trunk/Objects/dictobject.c Mon Mar 1 00:59:00 2010 @@ -2327,9 +2327,9 @@ } PyDoc_STRVAR(dictionary_doc, -"dict() -> new empty dictionary.\n" +"dict() -> new empty dictionary\n" "dict(mapping) -> new dictionary initialized from a mapping object's\n" -" (key, value) pairs.\n" +" (key, value) pairs\n" "dict(iterable) -> new dictionary initialized as if via:\n" " d = {}\n" " for k, v in iterable:\n" Modified: python/trunk/Objects/listobject.c ============================================================================== --- python/trunk/Objects/listobject.c (original) +++ python/trunk/Objects/listobject.c Mon Mar 1 00:59:00 2010 @@ -2536,7 +2536,7 @@ }; PyDoc_STRVAR(list_doc, -"list() -> new list\n" +"list() -> new empty list\n" "list(iterable) -> new list initialized from iterable's items"); Modified: python/trunk/Objects/tupleobject.c ============================================================================== --- python/trunk/Objects/tupleobject.c (original) +++ python/trunk/Objects/tupleobject.c Mon Mar 1 00:59:00 2010 @@ -681,10 +681,10 @@ } PyDoc_STRVAR(tuple_doc, -"tuple() -> an empty tuple\n" -"tuple(sequence) -> tuple initialized from sequence's items\n" -"\n" -"If the argument is a tuple, the return value is the same object."); +"tuple() -> empty tuple\n\ +tuple(iterable) -> tuple initialized from iterable's items\n\ +\n\ +If the argument is a tuple, the return value is the same object."); static PySequenceMethods tuple_as_sequence = { (lenfunc)tuplelength, /* sq_length */
participants (1)
-
ezio.melotti