[Python-checkins] r83880 - python/branches/py3k/Objects/bytesobject.c
senthil.kumaran
python-checkins at python.org
Mon Aug 9 10:56:26 CEST 2010
Author: senthil.kumaran
Date: Mon Aug 9 10:56:25 2010
New Revision: 83880
Log:
Fix Issue5416 - explain negative value for count in bytes object replace.
Modified:
python/branches/py3k/Objects/bytesobject.c
Modified: python/branches/py3k/Objects/bytesobject.c
==============================================================================
--- python/branches/py3k/Objects/bytesobject.c (original)
+++ python/branches/py3k/Objects/bytesobject.c Mon Aug 9 10:56:25 2010
@@ -2150,7 +2150,8 @@
\n\
Return a copy of B with all occurrences of subsection\n\
old replaced by new. If the optional argument count is\n\
-given, only the first count occurrences are replaced.");
+positive, only the first count occurrences are replaced. A\n\
+negative value of count replaces all occurences");
static PyObject *
bytes_replace(PyBytesObject *self, PyObject *args)
More information about the Python-checkins
mailing list