what would you like to see in a 2nd edition Nutshell?

Michael Bernstein webmaven at cox.net
Thu Dec 30 18:52:05 CET 2004


Aside from negative indices, I'd also suggest a small (and rather
obvious) example for replacing a substring:
>>> s='spam'
>>> s=s[:1]+'xx'+s[3:]
>>> s
'sxxm'
>>>

- Michael




More information about the Python-list mailing list