[wingide-users] autocompletion

Wing IDE Support support at wingware.com
Fri Jan 29 09:17:54 MST 2010


On 1/29/10 10:51 AM, Michael P. Soulier wrote:
> Hi,
>
> I'm using WingIDE with Django, and I noticed that Wing isn't making any method
> suggestions on my variable referencing a model class. I seem to recall that
> due to Python's dynamic nature, Wing needs suggestions like assertions to help
> it figure out what type my variable is, so I did:
>
> from dashboard.models import TugInstance
>
> def foo():
>      assert( isinstance(instance, TugInstance) )

Try
  if 0:
    assert( isinstance(instance, TugInstance) )

Wing currently doesn't incorporate info in functions in its assessment 
of what the probable types of global variables are.  It probably should, 
but the if 0: block should work for now.

Cheers,

John


More information about the wingide-users mailing list