diff Objects/bytesobject.c @ 63867:9468d1304284

Fix Issue5416 - explain negative value for count in bytes object replace.
author Senthil Kumaran <orsenthil@gmail.com>
date Mon, 09 Aug 2010 08:56:25 +0000
parents 865e34cd7e5b
children 7b7ebf558894
line wrap: on
line diff
--- a/Objects/bytesobject.c	Mon Aug 09 08:29:08 2010 +0000
+++ b/Objects/bytesobject.c	Mon Aug 09 08:56:25 2010 +0000
@@ -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)