Commit 04794cd7 authored by Stefan Behnel's avatar Stefan Behnel

test for some problematic **kw use cases

parent 3970ba08
__doc__ = """
>>> d = {1 : 2}
>>> test(**d)
Traceback (most recent call last):
TypeError: test() keywords must be strings
>>> d
{1: 2}
>>> d = {}
>>> test(**d)
{'arg': 3}
>>> d
{}
>>> d = {'arg' : 2}
>>> test(**d)
{'arg': 3}
>>> d
{'arg': 2}
"""
def test(**kw):
kw['arg'] = 3
return kw
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment