[wingide-users] undetermine type

Lawrence Oluyede l.oluyede at gmail.com
Fri Jul 4 07:30:47 MDT 2008

On Fri, Jul 4, 2008 at 3:21 PM, Wingware Support <support at wingware.com> wrote:
> 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]

Yep. I used list() because [:] does the same. Create a copy of the list.
Otherwise if the list is modified afterwards also the reference passed would.
Just assumed the behavior :)

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