"Jean-Paul Calderone" <[EMAIL PROTECTED]> wrote:

> On Mon, 29 Oct 2007 19:03:34 +0200, Hendrik van Rooyen <[EMAIL PROTECTED]>
wrote:

> >Looks like a gotcha to me - its the difference between a keyword
> >(master = 42) and an assignment  (s='I am a string')
> >
>
> But it's not a keyword:
>
>   >>> len(s=[])
>   Traceback (most recent call last):
>     File "<stdin>", line 1, in ?
>   TypeError: len() takes no keyword arguments
>   >>>
>
> I think that's the issue here.

yes - the point I am trying to make is that the intention of the OP
was to use an assignment as an argument, and you can't do that,
as the interpreter thinks its a keyword.   Hence the gotcha.

- Hendrik

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to