Closed
Description
Current Results
in gpython
>>>> d_list = {'a' : 1, 'b' : 2}
>>>> for k, v in d_list.items("hi"):
>>>> print(k,':',v)
a : 1
b : 2
in python
>>>> d_list = {'a' : 1, 'b' : 2}
>>>> for k, v in d_list.items("hi"):
>>>> print(k,':',v)
Traceback (most recent call last):
File "test.py", line 2, in <module>
for k, v in d_list.items("hi"):
TypeError: items() takes no arguments (1 given)
Lines 30 to 39 in af17d7d
I think we should add an error to this part of the code.
Metadata
Metadata
Assignees
Labels
No labels