type guessing error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

type guessing error

WingIDE - User mailing list
When someone does something like:

spam = dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])['guido']

Wing thinks that spam is of type dict rather than int.  This then leads
to incorrect suggestions when using spam later on.

Best,

coyot

*GLENN GLAZER | /S/**/enior Software Engineer /**
m:*562.305.2920 | *email:* [hidden email]
<mailto:[hidden email]> | *Second Life:* Coyot Linden
*LINDEN LAB* | Create Virtual Experiences
_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide
Reply | Threaded
Open this post in threaded view
|

Re: type guessing error

WingIDE - User mailing list
On 7/27/17 6:54 PM, Coyot Linden (Glenn Glazer) via wingide-users wrote:
> When someone does something like:
>
> spam = dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])['guido']
>
> Wing thinks that spam is of type dict rather than int.  This then leads
> to incorrect suggestions when using spam later on.

You're right.  We'll fix this in a future release.

Thanks,

John
_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide