Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

Python

Compiler

CPython 3.8.0

Options

Author

anonymous

over 5 years ago

$ python3 prog.py
{"one": 1, "two": 2, "three": 3}{"one": 1, "two": 2, "three": 3, "myself": 
Traceback (most recent call last):
  File "prog.py", line 9, in <module>
    json.dump(data, sys.stdout)
  File "/opt/wandbox/cpython-3.8.0/lib/python3.8/json/__init__.py", line 179, in dump
    for chunk in iterable:
  File "/opt/wandbox/cpython-3.8.0/lib/python3.8/json/encoder.py", line 431, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/opt/wandbox/cpython-3.8.0/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
    yield from chunks
  File "/opt/wandbox/cpython-3.8.0/lib/python3.8/json/encoder.py", line 340, in _iterencode_dict
    raise ValueError("Circular reference detected")
ValueError: Circular reference detected
Exit Code:
1