Re: simple string backspace question



<vedrandekovic@xxxxxxxxxxxxxx> wrote:
text="Hello\bworld"
print text
"HelloBSworld"

Should this character "\b" (backspace) in this text return this:
"Helloworld"?

rhymes@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
.



Relevant Pages

  • Re: simple string backspace question
    ... Lawrence, oluyede.org - neropercaso.it ... for code indentation. ... something an editor or a terminal do, because they interpret the backspace. ... BS as well as the character before. ...
    (comp.lang.python)
  • Re: Great SWT Program
    ... As have I -- but then I know control-U as the line kill character. ... Certainly not with anything obvious like backspace or the ... usually worked in the pico editor on these systems (which was the only ...
    (comp.lang.java.programmer)
  • Re: Odd character appearing in headers (prior threads noted)
    ... To add to my earler comments, the backspace (ascii 8) character is used as a placeholder for a graphic so, perhaps, the actual graphic has somehow got corrupted or deleted. ...
    (microsoft.public.word.docmanagement)
  • Re: hello world
    ... You're confusing the effect of pressing the Backspace key on your console ... on a console using or emulating a glass TTY ... effectively erasing the last character typed before BS. ... Dan Pop ...
    (comp.lang.c)
  • Re: Great SWT Program
    ... to explain why backspace in emacs i-search really Does The Right Thing. ... cr character, but its interpretation depends on the input mode. ... To match an enter in the target text you type ...
    (comp.lang.java.programmer)