On Tue, 30 Oct 2007 07:28:07 +0200, Hendrik van Rooyen wrote:

> 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.

Then you must have misunderstand his intention.  He wanted to give the
optional third argument of `getattr()` as keyword argument.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to