[wingide-users] undetermine type

Wingware Support support at wingware.com
Fri Jul 4 07:21:02 MDT 2008


Marcus Low wrote:
> def hello (rcptto) :
>    assert(isinstance(rcptto, list))              listrcpt = rcptto[:] 
> The listrcpt is also marked as undetermine type in the sample above. The 
> ide needs to detect this kind of usage.

Yes, I believe Wing is missing x = y[:] as an inferencing opportunity.  We hope
to improve this in the future.  Note that x = list(y) would work in this case
but of course isn't helpful if you want something like x = y[:-3]

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com



More information about the wingide-users mailing list