A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2010-July/094906.html below:

[Python-checkins] r82573 - in python/branches/py3k/Objects: bytes_methods.c unicodeobject.c

[Python-checkins] r82573 - in python/branches/py3k/Objects: bytes_methods.c unicodeobject.c [Python-checkins] r82573 - in python/branches/py3k/Objects: bytes_methods.c unicodeobject.csenthil.kumaran python-checkins at python.org
Mon Jul 5 14:00:56 CEST 2010
Author: senthil.kumaran
Date: Mon Jul  5 14:00:56 2010
New Revision: 82573

Log:
Fix the docstrings of the capitalize method.



Modified:
   python/branches/py3k/Objects/bytes_methods.c
   python/branches/py3k/Objects/unicodeobject.c

Modified: python/branches/py3k/Objects/bytes_methods.c
==============================================================================
--- python/branches/py3k/Objects/bytes_methods.c	(original)
+++ python/branches/py3k/Objects/bytes_methods.c	Mon Jul  5 14:00:56 2010
@@ -332,7 +332,8 @@
 PyDoc_STRVAR_shared(_Py_capitalize__doc__,
 "B.capitalize() -> copy of B\n\
 \n\
-Return a copy of B with only its first character capitalized (ASCII).");
+Return a copy of B with only its first character capitalized (ASCII)\n\
+and the rest lower-cased.");
 
 void
 _Py_bytes_capitalize(char *result, char *s, Py_ssize_t len)

Modified: python/branches/py3k/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k/Objects/unicodeobject.c	(original)
+++ python/branches/py3k/Objects/unicodeobject.c	Mon Jul  5 14:00:56 2010
@@ -6705,7 +6705,7 @@
              "S.capitalize() -> str\n\
 \n\
 Return a capitalized version of S, i.e. make the first character\n\
-have upper case.");
+have upper case and the rest lower case.");
 
 static PyObject*
 unicode_capitalize(PyUnicodeObject *self)
More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4