So following this thread, from your perspective and from what has been said you can’t see or noticed any parts of it needing interpreter? DG
> On 16 Sep 2023, at 03:14, Chris Angelico <[email protected]> wrote: > > On Sat, 16 Sept 2023 at 10:07, Dom Grigonis <[email protected]> wrote: >> >> >>> def nameof(x): return x >>> >>> print("This " + nameof("thing") + " is:", thing) >> Can you explain what you meant by this code? How would this work in editor? >> > > Frankly, I have no idea, because your **entire proposal** is > predicated on some sort of automated tool for renaming variables. > Without knowing the details of that tool, how can I tell you how this > would work? > > But if that tool can be taught that nameof indicates a variable name, > then it can rename inside it just like it would rename anything else. > > Your problem here is a limitation of the variable renaming tool. I'm > suggesting a solution to that problem. This is not a language problem, > it's an editor problem, so it needs an editor solution. > > ChrisA > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/I6KUD7LCGYV4JES77A7PZDVBHWVIKXF3/ > Code of Conduct: http://python.org/psf/codeofconduct/ _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/IDOWZCWN6CPEVFOUZGDPRKD7QV36ZCHL/ Code of Conduct: http://python.org/psf/codeofconduct/
