A little bit more detail may be required to understand why you want this.
As I currently read it, you're suggesting something that is mere visual only.

def f(d):
    d['a'] = 2
    return d

d = {1: 2}
a = f(d)
print(f'Is d and a the same? {d is a}') # "Is d and a the same? True"
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/S7ESKAYYYAE36VXN72CH374LQUVT5DPB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to