thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

code completion often not working (intellisense) #344

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Type in the following code:
s = "some string"
for c in s:
    c.

OR:

import urllib
s= 'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing='
h = urllib.urlopen(s+'12345')

t = h.

What is the expected output? What do you see instead?
I expect to see a code completion list for c. (showing string functions)

Similar problem in the second scenario with "h."

NOTE:  this behaviour works in the "python interpreter" 

What version of the product are you using? On what operating system?
1.9.9.7 on windows xp

Original issue reported on code.google.com by derekpen...@gmail.com on 23 Nov 2009 at 1:44

GoogleCodeExporter commented 9 years ago
Code completion in the editor is based on scanning the source code and will 
never be perfect.  In the first case PyScripter wouldn't know the type of the 
variable an enumerable returns (for c in someobject) unless one hardcodes 
certain special cases and in the second Pyscripter cannot guess the result type 
of urlopen.

Original comment by pyscripter on 20 Aug 2010 at 12:38

GoogleCodeExporter commented 9 years ago
See also the discussion thread 
http://groups.google.com/group/pyscripter/browse_thread/thread/4da7635ff3cee1fa

Original comment by pyscripter on 14 Sep 2010 at 11:24