[Tutor] Default parameter in class method

Daniele d.conca at gmail.com
Tue Oct 7 20:23:40 CEST 2008


2008/10/7 Kent Johnson <kent37 at tds.net>:
> On Tue, Oct 7, 2008 at 10:08 AM, Daniele <d.conca at gmail.com> wrote:
> def myMethod(self, parameter=_marker):
>  if parameter==_marker:
>    parameter = self.field

Thanks Kent and Alan, I've understood the point and I think I'll use
Kent's solution :)


More information about the Tutor mailing list