#853 completion is confused by asterisks in doc text

1.4.2
closed-fixed
5
2009-03-09
2009-02-17
No

I type this:

[].sort(

and then hit Ctrl-Space and get this mangled completion in code:

[].sort(cmp=None, key=None, reverse=False, __, stable, sort, *IN, PLACE*; cmp, x, y)

When I type just this without the opening parenthesis:

[].sort

and hit Ctrl-Space, I get the doc view, where on the left side I get the same as above (minus the []. prefix) but on the right I get the doc text:

L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1

Presumably the parsing mistake lies in looking for the asterisk (signifying a parameter to hold excess positional arguments), before looking for the closing parenthesis.

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2009-03-09

    Fixed for 1.4.5 (svn: 2681)

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-03-09

    • status: open --> closed-fixed