[ANN] PyStructure: Structure and Dependency Analyser for Python Projects

2008-04-14 Thread Robin Stocker
: 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

Re: Preferred method for "Assignment by value"

2008-04-15 Thread Robin Stocker
[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.

Re: Recurring patterns: Am I missing it, or can we get these added to the language?

2008-04-15 Thread Robin Stocker
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