[wingide-users] undetermine type

Lawrence Oluyede l.oluyede at gmail.com
Fri Jul 4 02:07:43 MDT 2008


On Fri, Jul 4, 2008 at 9:56 AM, Marcus Low <marcus at internetnowasp.net> 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.
>

How it should? Asserting something is a istance of list doesn't mean
that in the line below you will use the variable as one.
By the way this code breaks if rcptto is not a list but something with
slicing support.

-- 
Lawrence, stacktrace.it - oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair


More information about the wingide-users mailing list