Mangabasi a écrit :
> On Dec 21, 4:46 pm, Bruno Desthuilliers
> <[EMAIL PROTECTED]> wrote:
>
>>Mangabasi a écrit :
>>(snip)
>>
>>
>>
>>
>>>When you say "The Body gets asked for the value of the attribute" that
>>>means that Body's __dict__ is being asked to provide a value
>>>corresponding to its
On Dec 21, 4:46 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Mangabasi a écrit :
> (snip)
>
>
>
> > When you say "The Body gets asked for the value of the attribute" that
> > means that Body's __dict__ is being asked to provide a value
> > corresponding to its 'pos' key, right?
>
> Wrong. T
Mangabasi a écrit :
(snip)
>
> When you say "The Body gets asked for the value of the attribute" that
> means that Body's __dict__ is being asked to provide a value
> corresponding to its 'pos' key, right?
Wrong. That means that attribute lookup rules are invoked, which may *or
not* end up call
On Fri, 21 Dec 2007 10:30:31 -0800 (PST), Mangabasi <[EMAIL PROTECTED]> wrote:
>On Dec 21, 1:11 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
>> On Fri, 21 Dec 2007 09:49:51 -0800 (PST), Mangabasi <[EMAIL PROTECTED]>
>> wrote:
>> > [snip]
>>
>> >Hi Jean-Paul,
>>
>> >Sorry, I should have spell
On Dec 21, 1:11 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Fri, 21 Dec 2007 09:49:51 -0800 (PST), Mangabasi <[EMAIL PROTECTED]> wrote:
> > [snip]
>
> >Hi Jean-Paul,
>
> >Sorry, I should have spelled this out in my post but I did not. For
> >several reasons I do not wish to couple the
On Fri, 21 Dec 2007 09:49:51 -0800 (PST), Mangabasi <[EMAIL PROTECTED]> wrote:
> [snip]
>
>Hi Jean-Paul,
>
>Sorry, I should have spelled this out in my post but I did not. For
>several reasons I do not wish to couple the pos object with the Body
>instances. In my case, I did not want pos objects
On Dec 21, 12:40 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Fri, 21 Dec 2007 09:26:36 -0800 (PST), Mangabasi <[EMAIL PROTECTED]> wrote:
> >Howdy,
>
> >I think it is easier to explain my question with a short example:
>
> >class Body:
> > def __init__(self, pos):
> > self.__di
On Fri, 21 Dec 2007 09:26:36 -0800 (PST), Mangabasi <[EMAIL PROTECTED]> wrote:
>Howdy,
>
>I think it is easier to explain my question with a short example:
>
>class Body:
>def __init__(self, pos):
>self.__dict__['pos'] = pos
>
>def __setattr__(self, name, value):
>if name ==
Howdy,
I think it is easier to explain my question with a short example:
class Body:
def __init__(self, pos):
self.__dict__['pos'] = pos
def __setattr__(self, name, value):
if name == 'pos':
print 'pos changed to', value
self.__dict__[name] = value
>>