:
http://pystructure.ifs.hsr.ch/
We are very eager to hear your feedback about our project. What do you
think about the idea of a 'structural analyser' for a dynamic language
like Python? Does it work for your project (probably not very well at
the moment)?
Cheers,
Reto Schütte
[EMAIL PROTECTED] schrieb:
> by changing temp = v[:] the code worked perfectly (although changing
> temp.insert(0,k) to temp = [k] + temp also worked fine... I didn't
> like that as I knew it was a workaround)
So the for body now looks like this?:
temp = v[:]
temp.insert(0, k)
finallist.
Erich schrieb:
> This is like split() but returns a list of exactly lenght n. This is
> very useful when using unpacking, e.g.:
> x, y = nsplit('foo,bar,baz', ',', 2)
You could use the second argument of split:
x, y = 'foo,bar,baz'.split(',', 1)
Note that the number has the meaning "only spli