Steve Holden <steve <at> holdenweb.com> writes: > I'm sure we wouldn't want to go so far as to inhibit this. (Py 3.1) > > >>> def f(**kwargs): > ... kwargs[1] = "dummy" > ... print(kwargs) > ... > >>> f(this="Guido", that="Raymond", the_other="Steve") > {'this': 'Guido', 1: 'dummy', 'the_other': 'Steve', 'that': 'Raymond'}
I think that according to the proposal, the above snippet would be OK, but def f(**kwargs): kwargs[1] = 'dummy' g(**kwargs) would fail at the call of g. Regards, Vinay Sajip _______________________________________________ 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