>It's really something that needs editor support, not compiler support. As far as the Python interpreter is concerned, this is just a string. >So why not just make it an editor feature? >def nameof(x): return x >print("This " + nameof("thing") + " is:", thing) >As far as I can tell, this isn't a Python feature at all. It's an editor refactoring feature. >ChrisA This is the only use case I can think of. Couldn’t we just subclass typing.LiteralString to typing.Id or something for this “functionality” and let editing tools deal with it. Also I accidentaly made the windows11 client the app for responding these, can someone help to undo it, thanks. Send from Windows11 client (sorry IT SUCKS) |
_______________________________________________ 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/HULYOIQBBQKPJWPTWGA666S3B62VMYOH/ Code of Conduct: http://python.org/psf/codeofconduct/