simple string backspace question

Lawrence Oluyede raims at dot.com
Tue Jul 31 11:57:09 CEST 2007


<vedrandekovic at v-programs.com> wrote:
> >>> text="Hello\bworld"
> >>> print text
> "HelloBSworld"
> 
> Should this character "\b" (backspace) in this text return this:
> "Helloworld"?

rhymes at groove ~ % python                                          Python
2.5.1 (r251:54869, Apr 18 2007, 22:08:04) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> text="Hello\bworld"
>>> print text
Hellworld

What system are u using?

-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand 
something when his salary depends on not
understanding it" - Upton Sinclair



More information about the Python-list mailing list