[wingide-users] Completion for with statement target

Pete pfein at pobox.com
Mon Oct 13 02:31:13 MDT 2008

On Oct 10, 2008, at 7:17 PM, John Ehresman wrote:

> Pete wrote:
>> Wing doesn't recognize the as-variable in a with-statement for  
>> completion purposes.  For example, foo is not presented in the  
>> completion list:
>> with Foo() as foo:
>>    do_things(f
> This is a bug and we intend to fix it soon.

You can work around this like:

with Foo() as foo:
      foo = foo # help wingide out

but that's OMG lame.

More information about the wingide-users mailing list