This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, davidhariri
Date 2021-05-20.14:46:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621521978.33.0.035795797195.issue44190@roundup.psfhosted.org>
In-reply-to
Content
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'}
History
Date User Action Args
2021-05-20 14:46:18christian.heimessetrecipients: + christian.heimes, davidhariri
2021-05-20 14:46:18christian.heimessetmessageid: <1621521978.33.0.035795797195.issue44190@roundup.psfhosted.org>
2021-05-20 14:46:18christian.heimeslinkissue44190 messages
2021-05-20 14:46:18christian.heimescreate