[New-bugs-announce] [issue7124] idle.py -n : help() doesn't work in a reopened shell window

Gregor Lingl report at bugs.python.org
Wed Oct 14 14:34:05 CEST 2009

New submission from Gregor Lingl <gregorlingl at users.sourceforge.net>:

The following procedure reveals a problem with help:

1) Start IDLE with -n option (no subprocess)
2) Create a script (e. g. helloworld one-liner
3) Run script
4) Close Shell Window
5) Via Menu: Run | Python Shell reopen Shell window
6) >>> help(print)
Help on ...
    end:  string appended after the last value, default a newline.
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
  File "C:\Python31\lib\site.py", line 429, in __call__
    return pydoc.help(*args, **kwds)
  File "C:\Python31\lib\pydoc.py", line 1710, in __call__
  File "C:\Python31\lib\pydoc.py", line 1758, in help
  File "C:\Python31\lib\idlelib\PyShell.py", line 1231, in write
    self.shell.write(s, self.tags)
  File "C:\Python31\lib\idlelib\PyShell.py", line 1212, in write
    self.text.mark_gravity("iomark", "right")
AttributeError: 'NoneType' object has no attribute 'mark_gravity'

So in a re-opened Shell-Window in an IDLE in -n mode, help() doesn't
work correctly.


components: IDLE
messages: 93980
nosy: gregorlingl
severity: normal
status: open
title: idle.py -n : help() doesn't work in a reopened shell window
type: behavior
versions: Python 3.1, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list