Extract variable name from itself: nameof(a) = 'a'

Would you find (C#'s equivalent of) nameof() functionality useful in python? Namely, extracting identifiers name to string.
Yes
No
If yes, do you think it should be purely editor feature or part of python language?
It should be purely editor refactoring feature.
It is a useful language feature as it provides parser validation, which I think is useful.
Which syntax for it would you find most convenient?
A builtin function. E.g. nameof(identifier)
String formatting feature: '{identifier!id}' / '{identifier!i}'
Signalling editor syntax scope, without python parser's validation: e.g. Via typing.ID['name']
Other
Please Specify:
Any comments?
{"name":"Extract variable name from itself: nameof(a) = 'a'", "url":"https://www.supersurvey.com/QPREVIEW","txt":"Would you find (C#'s equivalent of) nameof() functionality useful in python? Namely, extracting identifiers name to string., If yes, do you think it should be purely editor feature or part of python language?, Which syntax for it would you find most convenient?","img":"https://www.supersurvey.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.