fork download
  1. from collections import OrderedDict
  2.  
  3. d1 = {
  4. 'id': 1,
  5. 'name': 'Foo',
  6. 'data': [
  7. OrderedDict(('name', 'bar'), ('id', 3)),
  8. ],
  9. }
  10. d2 = {
  11. 'id': 1,
  12. 'name': 'Foo',
  13. 'data': [
  14. OrderedDict(('name', 'bar'), ('id', 3)),
  15. ],
  16. }
  17.  
  18. assert d1 == d2
Runtime error #stdin #stdout #stderr 0.03s 9356KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 7, in <module>
TypeError: expected at most 1 arguments, got 2