Re: overriding setting

2007-06-06 Thread Francesco Guerrieri
On 6/6/07, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Francesco > Guerrieri wrote: > > > Now the question is this: > > I would like to initialize such an object in this way: > > a = myList() > > a = [[1, 2, 3], [4, 5, 6, 7]] > > a.pad() > > # and now a _should_ co

Re: overriding setting

2007-06-06 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Francesco Guerrieri wrote: > Now the question is this: > I would like to initialize such an object in this way: > a = myList() > a = [[1, 2, 3], [4, 5, 6, 7]] > a.pad() > # and now a _should_ contain [[1, 2, 3, ""], [4, 5, 6, 7]] > > > Obviously this doesn't work, because

overriding setting

2007-06-06 Thread Francesco Guerrieri
Hello, this is my first post to the list :-) I've looked around a bit before asking, and since I haven't found... I'm here to ask my question. I'm trying to ovveride attribute setting, but I haven't still found the right way to use all the fancy __get__, __set__ and __getattribute__ :-) I would l