[issue13164] importing rlcompleter module writes a control sequence in stdout

2015-04-14 Thread R. David Murray

R. David Murray added the comment:

Duplicate of 19884.

--
nosy: +r.david.murray
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - Importing readline produces erroneous output

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13164
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13164] importing rlcompleter module writes a control sequence in stdout

2011-10-19 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Can you give a simpler script (maybe in Python :) to reproduce this?  Also, 2.6 
only gets security fixes now, so please use 2.7, 3.2 or 3.3.

--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13164] importing rlcompleter module writes a control sequence in stdout

2011-10-13 Thread Valvanuz

New submission from Valvanuz valvanuz.fernan...@gestion.unican.es:

When you import the module rlcompleter in a python script in Centos 6 (x86_64), 
the control sequence \033[?1034h is printed in stdout. The problem is that 
these sequence is not visible by the user and cause a lot of confusion. 

In my case I compared the output of a python script (the integer 6) in bash and 
I got:

 test: 6: integer expression expected

How to reproduce:

 =
 BASH SCRIPT that calls test.py
 =
 id=$(./test.py)
 echo $id|sed -n l
 if test ${id} -eq 0;then
 fi

 =
 test.py
 =
 #!/usr/bin/python
 import rlcompleter
 a=2
 print a


OUTPUT

[valva@wn009 ~]$ bash p.sh 
\033[?1034h2$
p.sh: line 3: test: 2: integer expression expected


This only has happened to me in Centos 6 (python 2.6.5) I've tested in Centos 
5, debian and Ubuntu and it does not happen.

--
messages: 145452
nosy: valva
priority: normal
severity: normal
status: open
title: importing rlcompleter module writes a control sequence in stdout
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com