Hi,I found a typo in the following address, at the bottom:http://docs.python.org/library/string.html string.replace(str, old, new[, maxreplace])Should read: string.replace(old, new[, maxreplace])Thanks for all the work and effort you put into making Python better and better.Best regards,Ramon Royo i GinerEstudiant de Grau Multimèdiarroyog@uoc.edu
Hello Ramon, On Fri, Aug 10, 2012 at 9:53 PM, Ramon Royo Giner <rroyog@uoc.edu> wrote:
Hi,
I found a typo in the following address, at the bottom:
http://docs.python.org/library/string.html
string.replace(str, old, new[, maxreplace])
Should read:
string.replace(old, new[, maxreplace])
I don't think it's a typo: what's described here are the functions of the 'string' module, so string.replace() is really the function replace() of the module 'string' not 'asdfasdf'.replace() so the method replace() of a string object 'asdfasdf'. So 'str' is needed, because it's the argument the string.replace() function will work on. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Ramon Royo Giner
-
Sandro Tosi