Menu

#402 Default argument values in Code completion‏

open
nobody
5
2009-11-20
2009-11-20
No

Hi,

I have the following function define in Python:

def toto(a=1):
"this is a function with a default value for argument 1"
print a

Then when working with pydev, many features of pydev don't take care of the default value.

Example:

1- When typing the name of the function in the pydev console, pydev show a code completion dialog but the default argument doesn't appear. See attachment codeCompletion.bmp

2- Then when I press the carriage return key (on the completion dialog), pydev adds argument of the function without taking care of my default argument. See attachment codeCompletion2.bmp.

I think I would prefer that Pydev doesn't add argument with default value when pressing return key.

Also note that the tooltip that appears above the code doesn't mention the default argument

3- When I use the pydev editor, I have similar behaviours for code completion

Is this feature planned in a next release?

Thanks

Vincent

Discussion