Berker Peksag added the comment:
Also, I'd change the patch to use a note directive.
--
nosy: +berker.peksag
stage: commit review - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12833
Martin Panter added the comment:
Actually, there should either be a space before the double-colons, or the full
stops should be removed. So either of these options:
. . . when a backspace is typed. ::
. . . when a backspace is typed::
--
___
Python
Dhanam Prakash added the comment:
Hi,
submitting a patch for the documentation.
Thanks
--
hgrepos: +254
keywords: +patch
nosy: +dhanamp
Added file: http://bugs.python.org/file35519/issue12833.patch
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Still, this behavior is surprising and undesirable. I would suggest
adding a note to the docs for the readline module
+1.
--
assignee: - docs@python
components: +Documentation -IO, Interpreter Core
nosy: +docs@python
stage: test needed
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Reproduced on 3.3 head. Looking at the documentation of the C readline
library, it needs to know the length of the prompt in order to display
properly, so this seems to be an acknowledged limitation of the underlying
library rather than a
Idan Kamara idank...@gmail.com added the comment:
You're right, as this little C program verifies:
#include stdio.h
#include stdlib.h
#include readline/readline.h
int main() {
printf(foo );
char* buf = readline();
free(buf);
return 0;
}
Passing ' ' seems to be a suitable
Éric Araujo mer...@netwok.org added the comment:
Maybe you need to call sys.stdin.flush() before raw_input?
In any way, 2.6 is in security mode, so we need to reproduce this with current
versions: 2.7, 3.2 or 3.3.
--
components: +IO, Interpreter Core -Library (Lib)
nosy: +eric.araujo,
Idan Kamara idank...@gmail.com added the comment:
Reproduced on 2.7.
(flushing stdin/out doesn't help)
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12833
___
Changes by Mads Kiilerich m...@kiilerich.com:
--
nosy: +kiilerix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12833
___
___
Python-bugs-list
New submission from Idan Kamara idank...@gmail.com:
import sys, readline
sys.stdout.write('foo ')
raw_input()
When trying the above on Debian, 2.6.6 using gnome-terminal, typing a character
then hitting backspace deletes foo as well.
I'm not sure if this is a bug or the expected behavior
10 matches
Mail list logo