Re: can't find the right simplification

2009-04-23 Thread Lie Ryan
Stef Mientki wrote: hello, I've a program where you can connect snippets of code (which I call a "Brick") together to create a program. To make it easier to create these code snippets, I need some simplifications. For simple parameters ( integer, tupple, list etc) this works ok, and is done

Re: can't find the right simplification

2009-04-23 Thread Peter Otten
Stef Mientki wrote: > I've a program where you can connect snippets of code (which I call a > "Brick") together to create a program. > To make it easier to create these code snippets, I need some > simplifications. > For simple parameters ( integer, tupple, list etc)  this works ok, > and is don

Re: can't find the right simplification

2009-04-23 Thread ma
Not sure I understand what is self.P, but look at the __getitem__ and __setitem__ overloads --Sent from my iPhone On Apr 23, 2009, at 7:10 PM, Stef Mientki wrote: hello, I've a program where you can connect snippets of code (which I call a "Brick") together to create a program. To mak

can't find the right simplification

2009-04-23 Thread Stef Mientki
hello, I've a program where you can connect snippets of code (which I call a "Brick") together to create a program. To make it easier to create these code snippets, I need some simplifications. For simple parameters ( integer, tupple, list etc) this works ok, and is done like this: class _S