New submission from ariel brunner:

When defining a function with factional default arguments, the <tuple> text 
replaces the correct values in the tooltip.

Here's an example -

>>> def f(a=0.5):
        pass
>>> f(

tooltip shows - "(a=0<tuple>)", i.e. replaces the ".5" with <tuple>.

This was found to happen on IDLE with python 2.7.3 and 2.7.5 (the latter was on 
64 bit python installation on a windows 7 machine).

The problem was discussed here - 
http://stackoverflow.com/questions/17053492/pythons-idle-behavior-while-defining-fractional-default-values-to-function-para
and the problem was found to stem from the CallTips.py file (exact code lines 
in the link).

I believe this is the result of a fix to issue791968.

----------
components: IDLE
messages: 193631
nosy: ariel_bruner
priority: normal
severity: normal
status: open
title: Arguments tooltip wrong if def contains fractional default value
type: behavior
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18539>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to