Christian Heimes <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue44190>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com