Christian Heimes <li...@cheimes.de> added the comment:
Your proposal is not possible in Python. The object does not know under which variable names it is accessible. The closest you can get is this: >>> dict( ... foo="bar" ... ) {'foo': 'bar'} ---------- nosy: +christian.heimes _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44190> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com