On Fri, Apr 16, 2010 at 12:57:06AM -0400, Alex Gaynor wrote: > >>> def f(**kwargs): > ... print(kwargs) > ... > >>> kwargs = {1: 3} > >>> > >>> dict({}, **kwargs) > {1: 3} > >>> f(**kwargs) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: f() keywords must be strings
Argument names must be strings. In your example 1 must be at least '1'. Oleg. -- Oleg Broytman http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com