{
  "implementation": "CPython",
  "python": "3.12.14",
  "source_sha256": "c4c42f80e94f4465212945e58422f5dfb0090897447453e64ae844f7ad4267c3",
  "scope": "Eight fixed own programs executed locally; snapshots after each executed statement. Browser reads this record, not a Python runtime.",
  "cases": [
    {
      "id": "repeat",
      "code": "d = {}\nd['A'] = 2\nd['B'] = 5\nd['A'] = 9",
      "steps": [
        {
          "number": 1,
          "statement": "d = {}",
          "repr": "{}",
          "count": 0,
          "keys": [],
          "values": [],
          "typed_keys": [],
          "items": [],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "d['A'] = 2",
          "repr": "{'A': 2}",
          "count": 1,
          "keys": [
            "A"
          ],
          "values": [
            "2"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            }
          ],
          "items": [
            [
              "A",
              2
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 3,
          "statement": "d['B'] = 5",
          "repr": "{'A': 2, 'B': 5}",
          "count": 2,
          "keys": [
            "A",
            "B"
          ],
          "values": [
            "2",
            "5"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "B",
              5
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 4,
          "statement": "d['A'] = 9",
          "repr": "{'A': 9, 'B': 5}",
          "count": 2,
          "keys": [
            "A",
            "B"
          ],
          "values": [
            "9",
            "5"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            }
          ],
          "items": [
            [
              "A",
              9
            ],
            [
              "B",
              5
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        }
      ]
    },
    {
      "id": "literal",
      "code": "d = {}\nd = {'A': 2, 'B': 5, 'A': 9}",
      "steps": [
        {
          "number": 1,
          "statement": "d = {}",
          "repr": "{}",
          "count": 0,
          "keys": [],
          "values": [],
          "typed_keys": [],
          "items": [],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "d = {'A': 2, 'B': 5, 'A': 9}",
          "repr": "{'A': 9, 'B': 5}",
          "count": 2,
          "keys": [
            "A",
            "B"
          ],
          "values": [
            "9",
            "5"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            }
          ],
          "items": [
            [
              "A",
              9
            ],
            [
              "B",
              5
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        }
      ]
    },
    {
      "id": "update",
      "code": "d = {'A': 2, 'B': 5, 'C': 3}\nd['B'] = 8",
      "steps": [
        {
          "number": 1,
          "statement": "d = {'A': 2, 'B': 5, 'C': 3}",
          "repr": "{'A': 2, 'B': 5, 'C': 3}",
          "count": 3,
          "keys": [
            "A",
            "B",
            "C"
          ],
          "values": [
            "2",
            "5",
            "3"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            },
            {
              "type": "str",
              "repr": "'C'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "B",
              5
            ],
            [
              "C",
              3
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "d['B'] = 8",
          "repr": "{'A': 2, 'B': 8, 'C': 3}",
          "count": 3,
          "keys": [
            "A",
            "B",
            "C"
          ],
          "values": [
            "2",
            "8",
            "3"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            },
            {
              "type": "str",
              "repr": "'C'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "B",
              8
            ],
            [
              "C",
              3
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        }
      ]
    },
    {
      "id": "reinsert",
      "code": "d = {'A': 2, 'B': 5, 'C': 3}\ndel d['B']\nd['B'] = 8",
      "steps": [
        {
          "number": 1,
          "statement": "d = {'A': 2, 'B': 5, 'C': 3}",
          "repr": "{'A': 2, 'B': 5, 'C': 3}",
          "count": 3,
          "keys": [
            "A",
            "B",
            "C"
          ],
          "values": [
            "2",
            "5",
            "3"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            },
            {
              "type": "str",
              "repr": "'C'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "B",
              5
            ],
            [
              "C",
              3
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "del d['B']",
          "repr": "{'A': 2, 'C': 3}",
          "count": 2,
          "keys": [
            "A",
            "C"
          ],
          "values": [
            "2",
            "3"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'C'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "C",
              3
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 3,
          "statement": "d['B'] = 8",
          "repr": "{'A': 2, 'C': 3, 'B': 8}",
          "count": 3,
          "keys": [
            "A",
            "C",
            "B"
          ],
          "values": [
            "2",
            "3",
            "8"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'C'"
            },
            {
              "type": "str",
              "repr": "'B'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "C",
              3
            ],
            [
              "B",
              8
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        }
      ]
    },
    {
      "id": "case",
      "code": "d = {'A': 2}\nd['a'] = 7",
      "steps": [
        {
          "number": 1,
          "statement": "d = {'A': 2}",
          "repr": "{'A': 2}",
          "count": 1,
          "keys": [
            "A"
          ],
          "values": [
            "2"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            }
          ],
          "items": [
            [
              "A",
              2
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "d['a'] = 7",
          "repr": "{'A': 2, 'a': 7}",
          "count": 2,
          "keys": [
            "A",
            "a"
          ],
          "values": [
            "2",
            "7"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'a'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "a",
              7
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        }
      ]
    },
    {
      "id": "numeric",
      "code": "d = {1: 'entero'}\nd[True] = 'booleano'\nd[1.0] = 'real'",
      "steps": [
        {
          "number": 1,
          "statement": "d = {1: 'entero'}",
          "repr": "{1: 'entero'}",
          "count": 1,
          "keys": [
            "1"
          ],
          "values": [
            "entero"
          ],
          "typed_keys": [
            {
              "type": "int",
              "repr": "1"
            }
          ],
          "items": [
            [
              1,
              "entero"
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "d[True] = 'booleano'",
          "repr": "{1: 'booleano'}",
          "count": 1,
          "keys": [
            "1"
          ],
          "values": [
            "booleano"
          ],
          "typed_keys": [
            {
              "type": "int",
              "repr": "1"
            }
          ],
          "items": [
            [
              1,
              "booleano"
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 3,
          "statement": "d[1.0] = 'real'",
          "repr": "{1: 'real'}",
          "count": 1,
          "keys": [
            "1"
          ],
          "values": [
            "real"
          ],
          "typed_keys": [
            {
              "type": "int",
              "repr": "1"
            }
          ],
          "items": [
            [
              1,
              "real"
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        }
      ]
    },
    {
      "id": "missing",
      "code": "d = {'A': 2, 'B': 5}\ndel d['Z']",
      "steps": [
        {
          "number": 1,
          "statement": "d = {'A': 2, 'B': 5}",
          "repr": "{'A': 2, 'B': 5}",
          "count": 2,
          "keys": [
            "A",
            "B"
          ],
          "values": [
            "2",
            "5"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "B",
              5
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "del d['Z']",
          "repr": "{'A': 2, 'B': 5}",
          "count": 2,
          "keys": [
            "A",
            "B"
          ],
          "values": [
            "2",
            "5"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            },
            {
              "type": "str",
              "repr": "'B'"
            }
          ],
          "items": [
            [
              "A",
              2
            ],
            [
              "B",
              5
            ]
          ],
          "error": "KeyError",
          "error_detail": "'Z'",
          "stdout": ""
        }
      ]
    },
    {
      "id": "unhashable",
      "code": "d = {'A': 2}\nd[['B']] = 5",
      "steps": [
        {
          "number": 1,
          "statement": "d = {'A': 2}",
          "repr": "{'A': 2}",
          "count": 1,
          "keys": [
            "A"
          ],
          "values": [
            "2"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            }
          ],
          "items": [
            [
              "A",
              2
            ]
          ],
          "error": null,
          "error_detail": null,
          "stdout": ""
        },
        {
          "number": 2,
          "statement": "d[['B']] = 5",
          "repr": "{'A': 2}",
          "count": 1,
          "keys": [
            "A"
          ],
          "values": [
            "2"
          ],
          "typed_keys": [
            {
              "type": "str",
              "repr": "'A'"
            }
          ],
          "items": [
            [
              "A",
              2
            ]
          ],
          "error": "TypeError",
          "error_detail": "unhashable type: 'list'",
          "stdout": ""
        }
      ]
    }
  ]
}
