Bug in "re.sub" docs
http://docs.python.org/library/re.html#re.sub a) flags param seems to be not there in the implementation b) "That is, \n is converted to a single newline character, \r is converted to a linefeed, and so forth." Obviously, \r is NOT linefeed, but carriage return.
Hi Thomas,
thanks for your email.
On Sat, Feb 26, 2011 at 22:28, Thomas Waldmann
http://docs.python.org/library/re.html#re.sub
a) flags param seems to be not there in the implementation
could you please give us more details? are you talking about a specific method (or a set of them)? If so, what is it?
b) "That is, \n is converted to a single newline character, \r is converted to a linefeed, and so forth."
Obviously, \r is NOT linefeed, but carriage return.
You're right about that (I'll prepare a patch once a) is clear). Cheers. -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Sandro Tosi
-
Thomas Waldmann