This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: idle.py doesn't accept ( in some cases
Type: Stage:
Components: IDLE Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: kbk Nosy List: barry, glingl, kbk
Priority: low Keywords:

Created on 2003-07-22 09:31 by glingl, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (6)
msg17232 - (view) Author: Gregor Lingl (glingl) (Python committer) Date: 2003-07-22 09:31
I start IDLE in one-process-mode, in order to be able to 
use turtle.py in interactive mode.

i:\python23\python.exe idle.py -n

I enter in the shell-window:

Python 2.3c1 (#44, Jul 18 2003, 14:32:36) [MSC v.1200
32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more
information.
IDLE 1.0rc1      ==== No Subprocess ====
>>> from turtle import *
>>> Exception in Tkinter callback
Traceback (most recent call last):
  File "I:\Python23\lib\lib-tk\Tkinter.py", line 1345,
in __call__
    return self.func(*args)
  File "i:\python23\lib\idlelib\CallTips.py", line 47,
in paren_open_event
    arg_text = self.fetch_tip(name)
  File "i:\python23\lib\idlelib\CallTips.py", line 106,
in fetch_tip
    return get_arg_text(entity)
  File "i:\python23\lib\idlelib\CallTips.py", line 165,
in get_arg_text
    doc = getattr(ob, "__doc__", "").lstrip()
AttributeError: 'NoneType' object has no attribute 'lstrip'
forward(

Just after typing the opening parentheses after the 
function name forward the shown error-message appears,
and the just typed in forward( is appended to it.

When I continue e.g. with 50), the turtle does, what
I want. The same with all following function-calls.

Maybe the reason for this bug lies (in some way)
in turtle.py. Nevertheless, IMHO IDLE SHOULD accept 
modules like turtle.py withoult breaking

(I can't understand how getattr with 3. arg "" can
return NoneType at all. Or is this a bug in getattr?)

Interestingly IDLE started ordinarily in multiprocess
mode doesn't show this behaviour.

>>> from turtle import *
>>> forward(50

Alas! It's not recommended to complete this, as
then IDLE would hang from other reasons ...

Regards, Gregor
msg17233 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2003-07-23 05:04
Logged In: YES 
user_id=149084

functions/methods with no docstrings will raise
this error.

Patch 776062 submitted for 2.3rc2
msg17234 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-07-23 21:43
Logged In: YES 
user_id=12800

Kurt, you applied the referenced patch, right?  So this bug
report can be closed, right?  If so, please do.
msg17235 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2003-07-23 22:03
Logged In: YES 
user_id=149084

Basic cause is fixed.  I had some comments on
his comments on turtle.py which I'm holding
off until I can get 2.3rc2 on XP.  Lowering priority.
msg17236 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2003-07-23 22:28
Logged In: YES 
user_id=149084

Basic cause is fixed.  I had some comments on
his comments on turtle.py which I'm holding
off until I can get 2.3rc2 on XP.  Lowering priority.
msg17237 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2004-08-04 04:03
Logged In: YES 
user_id=149084

Original problem fixed 23Jul03.  I find that IDLE 1.1a2 with
subprocess works OK with turtle.py.  If there are problems
I haven't detected, please enter as separate bugs.
History
Date User Action Args
2022-04-10 16:10:07adminsetgithub: 38898
2003-07-22 09:31:43glinglcreate