[Python-bugs-list] [ python-Bugs-791968 ] Arguments tooltip wrong if def contains tuple

SourceForge.net noreply at sourceforge.net
Wed Aug 20 09:44:12 EDT 2003


Bugs item #791968, was opened at 2003-08-20 18:16
Message generated for change (Comment added) made by tzot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=791968&group_id=5470

Category: IDLE
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Christos Georgiou (tzot)
Assigned to: Kurt B. Kaiser (kbk)
Summary: Arguments tooltip wrong if def contains tuple

Initial Comment:
This happens in IDLE on Windows 2000, from 2.3 EXE 
installer.  Type the following:

>>> def f((a,b), c):
	print a, b, c

>>> f(

The tooltip shows up containing the following exact 
string (but the triple quotes):
"""(.0, c)"""


----------------------------------------------------------------------

>Comment By: Christos Georgiou (tzot)
Date: 2003-08-20 18:44

Message:
Logged In: YES 
user_id=539787

Quite fast, Neal! :)
It seems it's not exactly an IDLE bug; check ToolTip.py, line 
134 (vanilla 2.3); it's the f.func_code.co_varnames that 
returns this tuple:
('.0', 'c', 'a', 'b')

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=791968&group_id=5470



More information about the Python-bugs-list mailing list