[docs] [issue23271] Unicode HOWTO documentation error

Eric V. Smith report at bugs.python.org
Mon Jan 19 15:13:54 CET 2015


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 s, so s does not change.

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: enhancement -> 

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23271>
_______________________________________


More information about the docs mailing list