# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

from types import MappingProxyType
d={1:'A'}
d_proxy = MappingProxyType(d)

# + pycharm={"name": "#%%\n"}
d_proxy

# + pycharm={"name": "#%%\n"}
d_proxy[1]

# + pycharm={"name": "#%%\n"}
d_proxy[2]

# + pycharm={"name": "#%%\n"}
d[2] = 'B'

# + pycharm={"name": "#%%\n"}
d_proxy

# + pycharm={"name": "#%%\n"}
d_proxy[2]

# + pycharm={"name": "#%%\n"}
d_proxy[3] = 'x'

# + pycharm={"name": "#%%\n"}


StarcoderdataJupyterScriptsDedupFiltered