New submission from Gregor Lingl <gregorli...@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> help(print) 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__ self.help(request) File "C:\Python31\lib\pydoc.py", line 1758, in help self.output.write('\n') 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. Regards, Gregor ---------- 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 <rep...@bugs.python.org> <http://bugs.python.org/issue7124> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com