[issue23271] Unicode HOWTO documentation error

2015-01-19 Thread Eric V. Smith
Eric V. Smith added the comment: The example is correct. If you type it into a python interpreter, you get the results as shown in the example. The .replace() method does not modify the string s. It returns the new value. In the example, the new value is displayed, but is not assigned back to

[issue23271] Unicode HOWTO documentation error

2015-01-19 Thread Dionysis Zindros
New submission from Dionysis Zindros: In the Unicode HOTWO documentation for Python 2.x [0], there's an error in the fourth code sample under the section "The Unicode Type". The code states: ``` >>> s = u'Was ever feather so lightly blown to and fro as this multitude?' >>> s.count('e') 5 >>> s