[New-bugs-announce] [issue25174] Backspace Escape Character at End of String

Jared Bevis report at bugs.python.org
Sat Sep 19 04:45:58 CEST 2015


New submission from Jared Bevis:

I'm a new python learner but I noticed inconsistent behavior of the backspace character when used in strings.  I'm running 2.7.10.  Whenever the backspace character '\b' is at the very end of a string, nothing happens, but if it is in the middle of string it behaves as expected.  

For example:
print "12345" + '\b'
returns:
>>>12345

But:
print "12345" + '\b' + '6'
returns:
>>> 12346

----------
components: Regular Expressions
messages: 251049
nosy: Jared Bevis, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Backspace Escape Character at End of String
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list