[Python-modules-team] Bug#461190: Bug#461190: malformatted help output

Bernd Zeimetz bernd at bzed.de
Thu Jan 17 09:50:57 UTC 2008


tags 461190 + unreproducible moreinfo
thanks

>   import os
>   os?
> 
> then I get a pager where the top lists escape sequences:
> 
>   ESC[0;31mType:          ESC[0mmodule
>   ESC[0;31mBase Class:    ESC[0m<type 'module'>
>   ESC[0;31mString Form:ESC[0m     <module 'os' from '/usr/lib/python2.4/os.pyc'>
>   ESC[0;31mNamespace:     ESC[0mInteractive
>   ESC[0;31mFile:          ESC[0m/usr/lib/python2.4/os.py
>   ESC[0;31mDocstring:
>   ESC[0m    OS routines for Mac, DOS, NT, or Posix depending on what system we're on.
> 
> These should probably be interpreted and not echoed verbatim.


Tested in several terminals now, and it always worked well for me.

In [1]: import os

In [2]: os?
Type:           module
Base Class:     <type 'module'>
String Form:    <module 'os' from '/usr/lib/python2.4/os.pyc'>
Namespace:      Interactive
File:           /usr/lib/python2.4/os.py
Docstring:
    OS routines for Mac, DOS, NT, or Posix depending on what system
we're on.

[....]


Sounds more like a broken terminal (-setting...). Please give me the
exact steps to reproduce this, starting with a normal Debian installation.


Thanks,

Bernd

-- 
Bernd Zeimetz
<bernd at bzed.de>                         <http://bzed.de/>





More information about the Python-modules-team mailing list