Jan Eden wrote:
> Hi,
>
> Jan Eden wrote on 26.08.2005:
>
>
>>Hi,
>>
>>I need to use an instance attribute as the default value for a parameter to a
>>method.
>>
>>This obviously won't work:
>>
>>page.Children()
>>
>>def Children(self, id=self.id, level=2):
>>
>>How can I get the id parameter t
Jan Eden a écrit :
> Hi,
>
> Jan Eden wrote on 26.08.2005:
>
>
>>Hi,
>>
>>I need to use an instance attribute as the default value for a parameter to a
>>method.
>>
>>This obviously won't work:
>>
>>page.Children()
>>
>>def Children(self, id=self.id, level=2):
>>
>>How can I get the id parame
Hi,
Jan Eden wrote on 26.08.2005:
>Hi,
>
>I need to use an instance attribute as the default value for a parameter to a
>method.
>
>This obviously won't work:
>
>page.Children()
>
>def Children(self, id=self.id, level=2):
>
>How can I get the id parameter to use the attribute page.id? I know I c
Hi,
I need to use an instance attribute as the default value for a parameter to a
method.
This obviously won't work:
page.Children()
def Children(self, id=self.id, level=2):
How can I get the id parameter to use the attribute page.id? I know I could
simply use the method call
page.Children(