Commit 69881583 authored by Robert Bradshaw's avatar Robert Bradshaw

None dict getitem test.

parent 3f9ece17
......@@ -21,5 +21,10 @@ def test(dict d, index):
Traceback (most recent call last):
...
ValueError
>>> test(None, 1)
Traceback (most recent call last):
...
TypeError: 'NoneType' object is unsubscriptable
"""
return d[index]
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